Fix for bug 298391 (Remove some unused stuff from parser code). r=mrbkap, sr=jst, a=chofmann.

git-svn-id: svn://10.0.0.236/trunk@175091 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2005-06-24 13:21:59 +00:00
parent efd239e23b
commit 4f974157e9
3 changed files with 0 additions and 21 deletions

View File

@@ -56,7 +56,6 @@
#define kExpatSeparatorChar 0xFFFF
static const char kWhitespace[] = " \r\n\t"; // Optimized for typical cases
static const PRUnichar kUTF16[] = { 'U', 'T', 'F', '-', '1', '6', '\0' };
/***************************** EXPAT CALL BACKS ******************************/

View File

@@ -37,11 +37,6 @@
*
* ***** END LICENSE BLOCK ***** */
#define XMLENCODING_PEEKBYTES 64
#define DISABLE_TRANSITIONAL_MODE
#include "nsIAtom.h"
#include "nsParser.h"
#include "nsString.h"

View File

@@ -73,9 +73,6 @@ nsReadEndCondition::nsReadEndCondition(const PRUnichar* aTerminateChars) :
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
static const char kBadHTMLText[] ="<H3>Oops...</H3>You just tried to read a non-existent document: <BR>";
static const char kUnorderedStringError[] = "String argument must be ordered. Don't you read API's?";
#ifdef __INCREMENTAL
const int kBufsize=1;
#else
@@ -420,18 +417,6 @@ nsresult nsScanner::FillBuffer(void) {
nsresult result=NS_OK;
if(!mInputStream) {
#if 0
//This is DEBUG code!!!!!! XXX DEBUG XXX
//If you're here, it means someone tried to load a
//non-existent document. So as a favor, we emit a
//little bit of HTML explaining the error.
if(0==mTotalRead) {
mBuffer.Append((const char*)kBadHTMLText);
mBuffer.Append(mFilename);
mTotalRead+=mBuffer.Length();
}
else
#endif
result=kEOF;
}
else {