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:
@@ -51,7 +51,6 @@
|
||||
|
||||
#ifndef RICKG_TESTBED
|
||||
#include "prdtoa.h"
|
||||
#include "nsISizeOfHandler.h"
|
||||
#endif
|
||||
|
||||
static const char* kPossibleNull = "Error: possible unintended null in string";
|
||||
@@ -155,14 +154,6 @@ nsString::nsString( const nsAString& aReadable ) {
|
||||
Assign(aReadable);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void nsString::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const {
|
||||
if (aResult) {
|
||||
*aResult = sizeof(*this) + GetCapacity() * GetCharSize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This method truncates this string to given length.
|
||||
*
|
||||
@@ -1473,12 +1464,3 @@ nsAutoString::nsAutoString(PRUnichar aChar) : nsString(){
|
||||
AddNullTerminator(*this);
|
||||
Append(aChar);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void nsAutoString::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const {
|
||||
if (aResult) {
|
||||
*aResult = sizeof(*this) + GetCapacity() * GetCharSize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user