Kaydet (Commit) 03ce32c4 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

callcatcher: actually remove INetContentTypes::GetExtension

üst b272991c
...@@ -942,25 +942,6 @@ UniString INetContentTypes::GetPresentation(INetContentType eTypeID, ...@@ -942,25 +942,6 @@ UniString INetContentTypes::GetPresentation(INetContentType eTypeID,
return SvtSimpleResId(nResID, aLocale); return SvtSimpleResId(nResID, aLocale);
} }
//============================================================================
//static
UniString INetContentTypes::GetExtension(UniString const & rTypeName)
{
MediaTypeEntry const * pEntry = seekEntry(rTypeName, aStaticTypeNameMap,
CONTENT_TYPE_LAST + 1);
if (pEntry)
return UniString::CreateFromAscii(pEntry->m_pExtension);
UniString aExtension = Registration::GetExtension(rTypeName);
if (aExtension.Len() != 0)
return aExtension;
// special handling of text types, which come in uncounted variations:
return rTypeName.EqualsIgnoreCaseAscii("text", 0,
RTL_CONSTASCII_LENGTH("text")) ?
UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("txt")) :
UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("tmp"));
}
//============================================================================ //============================================================================
//static //static
INetContentType INetContentTypes::GetContentType4Extension(UniString const & INetContentType INetContentTypes::GetContentType4Extension(UniString const &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment