Bug 1022667, part 4 - Remove some font related functions from gfxWindowsPlatform.cpp. r=jfkthame

This commit is contained in:
Jonathan Watt 2014-06-10 16:42:23 +01:00
parent c0a8b4c744
commit 62f18378c7

View File

@ -283,14 +283,6 @@ public:
NS_IMPL_ISUPPORTS(GPUAdapterReporter, nsIMemoryReporter)
static __inline void
BuildKeyNameFromFontName(nsAString &aName)
{
if (aName.Length() >= LF_FACESIZE)
aName.Truncate(LF_FACESIZE - 1);
ToLowerCase(aName);
}
gfxWindowsPlatform::gfxWindowsPlatform()
: mD3D11DeviceInitialized(false)
, mPrefFonts(50)
@ -696,14 +688,6 @@ gfxWindowsPlatform::GetFontList(nsIAtom *aLangGroup,
return NS_OK;
}
static void
RemoveCharsetFromFontSubstitute(nsAString &aName)
{
int32_t comma = aName.FindChar(char16_t(','));
if (comma >= 0)
aName.Truncate(comma);
}
nsresult
gfxWindowsPlatform::UpdateFontList()
{