bug 608940 - remove unused function gfxTextRun::Clone. r=jdaggett

This commit is contained in:
Jonathan Kew 2011-04-28 06:06:53 +01:00
parent eb0e942dc9
commit 0d12b6c03d
2 changed files with 0 additions and 25 deletions

View File

@ -3084,22 +3084,6 @@ gfxTextRun::~gfxTextRun()
MOZ_COUNT_DTOR(gfxTextRun);
}
gfxTextRun *
gfxTextRun::Clone(const gfxTextRunFactory::Parameters *aParams, const void *aText,
PRUint32 aLength, gfxFontGroup *aFontGroup, PRUint32 aFlags)
{
if (!mCharacterGlyphs)
return nsnull;
nsAutoPtr<gfxTextRun> textRun;
textRun = gfxTextRun::Create(aParams, aText, aLength, aFontGroup, aFlags);
if (!textRun)
return nsnull;
textRun->CopyGlyphDataFrom(this, 0, mCharacterCount, 0);
return textRun.forget();
}
PRBool
gfxTextRun::SetPotentialLineBreaks(PRUint32 aStart, PRUint32 aLength,
PRPackedBool *aBreakBefore,

View File

@ -1702,15 +1702,6 @@ public:
static gfxTextRun *Create(const gfxTextRunFactory::Parameters *aParams,
const void *aText, PRUint32 aLength, gfxFontGroup *aFontGroup, PRUint32 aFlags);
// Clone this textrun, according to the given parameters. This textrun's
// glyph data is copied, so the text and length must be the same as this
// textrun's. If there's a problem, return null. Actual linebreaks will
// be set as per aParams; there will be no potential linebreaks.
// If aText is not persistent (aFlags & TEXT_IS_PERSISTENT), the
// textrun will copy it.
virtual gfxTextRun *Clone(const gfxTextRunFactory::Parameters *aParams, const void *aText,
PRUint32 aLength, gfxFontGroup *aFontGroup, PRUint32 aFlags);
/**
* This class records the information associated with a character in the
* input string. It's optimized for the case where there is one glyph