Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -52,7 +52,6 @@
|
||||
|
||||
#ifndef RICKG_TESTBED
|
||||
#include "prdtoa.h"
|
||||
#include "nsISizeOfHandler.h"
|
||||
#endif
|
||||
|
||||
static const char* kPossibleNull = "Error: possible unintended null in string";
|
||||
@@ -140,14 +139,6 @@ nsCString::nsCString( const nsACString& aReadable ) {
|
||||
Assign(aReadable);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void nsCString::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const {
|
||||
if (aResult) {
|
||||
*aResult = sizeof(*this) + GetCapacity() * GetCharSize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This method truncates this string to given length.
|
||||
*
|
||||
@@ -1272,12 +1263,3 @@ nsCAutoString::nsCAutoString(const CBufDescriptor& aBuffer) : nsCString() {
|
||||
if(!aBuffer.mIsConst)
|
||||
AddNullTerminator(*this); //this isn't really needed, but it guarantees that folks don't pass string constants.
|
||||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
void nsCAutoString::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const {
|
||||
if (aResult) {
|
||||
*aResult = sizeof(*this) + GetCapacity() * GetCharSize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user