From ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 24 Feb 2012 16:36:50 +0100 Subject: Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790) --- Source/WebKit/blackberry/Api/WebKitTextCodec.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Source/WebKit/blackberry/Api/WebKitTextCodec.cpp') 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 #include @@ -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 -- cgit v1.2.1