Bug 1334290 - Remove useless fields from nsScanner. r=mrbkap.

MozReview-Commit-ID: 6LnvmOGrGwz
This commit is contained in:
Henri Sivonen
2017-02-17 08:44:49 +02:00
parent f72d4e4b61
commit cfce56d0aa
6 changed files with 15 additions and 138 deletions

View File

@@ -373,19 +373,6 @@ nsScannerString::UngetReadable( const nsAString& aReadable, const nsScannerItera
mIsDirty = true;
}
void
nsScannerString::ReplaceCharacter(nsScannerIterator& aPosition, char16_t aChar)
{
// XXX Casting a const to non-const. Unless the base class
// provides support for writing iterators, this is the best
// that can be done.
char16_t* pos = const_cast<char16_t*>(aPosition.get());
*pos = aChar;
mIsDirty = true;
}
/**
* nsScannerSharedSubstring
*/