diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
commit | ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 (patch) | |
tree | b34b0daceb7c8e7fdde4b4ec43650ab7caadb0a9 /Source/WebKit/blackberry/Api/WebKitTextCodec.cpp | |
parent | 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (diff) | |
download | qtwebkit-ad0d549d4cc13433f77c1ac8f0ab379c83d93f28.tar.gz |
Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790)
Diffstat (limited to 'Source/WebKit/blackberry/Api/WebKitTextCodec.cpp')
-rw-r--r-- | Source/WebKit/blackberry/Api/WebKitTextCodec.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/WebKit/blackberry/Api/WebKitTextCodec.cpp b/Source/WebKit/blackberry/Api/WebKitTextCodec.cpp index badb31fc7..3250601dd 100644 --- a/Source/WebKit/blackberry/Api/WebKitTextCodec.cpp +++ b/Source/WebKit/blackberry/Api/WebKitTextCodec.cpp @@ -21,7 +21,6 @@ #include "Base64.h" #include "KURL.h" -#include "MIMETypeRegistry.h" #include "TextCodecICU.h" #include <wtf/Vector.h> #include <wtf/text/CString.h> @@ -134,18 +133,5 @@ void escapeURL(const std::string& url, std::string& escaped) escaped.append(utf8.data(), utf8.length()); } -bool getExtensionForMimeType(const std::string& mime, std::string& extension) -{ - String mimeType(mime.data(), mime.length()); - String preferredExtension = WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType(mimeType); - if (preferredExtension.isEmpty()) - return false; - - CString utf8 = preferredExtension.utf8(); - extension.clear(); - extension.append(utf8.data(), utf8.length()); - return true; -} - } // namespace WebKit } // namespace BlackBerry |