trivial removal of warnings; r=none

This commit is contained in:
rickg@netscape.com
1999-11-14 23:15:35 +00:00
parent 2460dc46dc
commit 3c79b8bc2b
6 changed files with 14 additions and 14 deletions

View File

@@ -721,7 +721,6 @@ CCommentToken::CCommentToken(const nsString& aName) : CHTMLToken(aName) {
*/
static
nsresult ConsumeStrictComment(PRUnichar aChar, nsScanner& aScanner,nsString& aString) {
static const char* gMinus="-";
nsresult result=NS_OK;
/*********************************************************
@@ -744,7 +743,6 @@ nsresult ConsumeStrictComment(PRUnichar aChar, nsScanner& aScanner,nsString& aSt
if(kMinus==aChar) {
//in this case, we're reading a long-form comment <-- xxx -->
aString+=aChar;
//result=aScanner.ReadWhile(aString,gMinus,PR_TRUE,PR_FALSE); //get all available '---'
if(NS_OK==result) {
PRInt32 findpos=-1;
nsAutoString temp("");
@@ -755,7 +753,6 @@ nsresult ConsumeStrictComment(PRUnichar aChar, nsScanner& aScanner,nsString& aSt
}
aString+=temp;
if(NS_OK==result) {
// result=aScanner.ReadWhile(aString,gMinus,PR_TRUE,PR_FALSE); //get all available '---'
if(NS_OK==result) {
temp="->";
result=aScanner.ReadUntil(aString,temp,PR_FALSE,PR_FALSE);