diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp
index 2aada7f3dcbe..8dba7dbb81e5 100644
--- a/content/html/document/src/nsHTMLContentSink.cpp
+++ b/content/html/document/src/nsHTMLContentSink.cpp
@@ -338,7 +338,6 @@ public:
PRBool IsTimeToNotify();
PRBool IsInScript();
- void ReduceEntities(nsString& aString);
const nsDependentSubstring GetAttributeValueAt(const nsIParserNode& aNode,
PRInt32 aIndex);
nsresult AddAttributes(const nsIParserNode& aNode, nsIHTMLContent* aContent,
@@ -689,47 +688,6 @@ HTMLContentSink::SinkTraceNode(PRUint32 aBit,
}
#endif
-/**
- * Helper to find identifiers that can terminate an entity
- *
- * harishd 06/23/00
- *
- * @param aSource - Search for entity terminator in this string
- * @param aChar - Holds the terminated character
- * @param aStartOffset - Beings search, in aSource, from this offset.
- */
-
-PRInt32
-GetEntityTerminator(nsString& aSource,PRUnichar& aChar,PRInt32 aStartOffset=0) {
-
- PRUnichar theChar=aChar=0;
- PRInt32 theOffset=aStartOffset;
- PRInt32 theLength=aSource.Length();
- PRBool found=PR_FALSE;
-
- while(theOffset 0) {
if(tmp.CharAt(0) == '\r') {
- tmp.AssignWithConversion("\n");
+ tmp.Assign((PRUnichar)'\n');
}
rv = AddText(tmp);
}