From f36ff98d3215522413014e78fc496a4234923c4e Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Sat, 15 Apr 2006 00:39:35 +0000 Subject: [PATCH] Remove defunct assertions from debug-only code. bug 334055, r+sr=sicking --- content/base/src/nsCommentNode.cpp | 2 -- content/base/src/nsGenericElement.cpp | 2 -- content/base/src/nsTextNode.cpp | 4 ---- content/html/content/src/nsGenericHTMLElement.cpp | 4 ---- content/xml/content/src/nsXMLCDATASection.cpp | 2 -- content/xml/content/src/nsXMLProcessingInstruction.cpp | 2 -- content/xul/content/src/nsXULElement.cpp | 2 -- 7 files changed, 18 deletions(-) diff --git a/content/base/src/nsCommentNode.cpp b/content/base/src/nsCommentNode.cpp index 2c1f79bfe041..aab49100c1ed 100644 --- a/content/base/src/nsCommentNode.cpp +++ b/content/base/src/nsCommentNode.cpp @@ -179,8 +179,6 @@ nsCommentNode::Clone(nsINodeInfo *aNodeInfo, PRBool aCloneText) const void nsCommentNode::List(FILE* out, PRInt32 aIndent) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRInt32 indx; for (indx = aIndent; --indx >= 0; ) fputs(" ", out); diff --git a/content/base/src/nsGenericElement.cpp b/content/base/src/nsGenericElement.cpp index 10687c43b8de..a4ff9b177848 100644 --- a/content/base/src/nsGenericElement.cpp +++ b/content/base/src/nsGenericElement.cpp @@ -3776,8 +3776,6 @@ nsGenericElement::GetAttrCount() const void nsGenericElement::List(FILE* out, PRInt32 aIndent) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRInt32 indent; for (indent = aIndent; --indent >= 0; ) fputs(" ", out); diff --git a/content/base/src/nsTextNode.cpp b/content/base/src/nsTextNode.cpp index 447bce55bc03..63a6086ff84d 100644 --- a/content/base/src/nsTextNode.cpp +++ b/content/base/src/nsTextNode.cpp @@ -233,8 +233,6 @@ nsTextNode::Clone(nsINodeInfo *aNodeInfo, PRBool aCloneText) const void nsTextNode::List(FILE* out, PRInt32 aIndent) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRInt32 index; for (index = aIndent; --index >= 0; ) fputs(" ", out); @@ -250,8 +248,6 @@ nsTextNode::List(FILE* out, PRInt32 aIndent) const void nsTextNode::DumpContent(FILE* out, PRInt32 aIndent, PRBool aDumpAll) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - if(aDumpAll) { PRInt32 index; for (index = aIndent; --index >= 0; ) fputs(" ", out); diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index 2ef1e7aa40ca..7427a8ba8e37 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -1864,8 +1864,6 @@ nsGenericHTMLElement::ListAttributes(FILE* out) const void nsGenericHTMLElement::List(FILE* out, PRInt32 aIndent) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRInt32 index; for (index = aIndent; --index >= 0; ) fputs(" ", out); @@ -1894,8 +1892,6 @@ void nsGenericHTMLElement::DumpContent(FILE* out, PRInt32 aIndent, PRBool aDumpAll) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRInt32 index; for (index = aIndent; --index >= 0; ) fputs(" ", out); diff --git a/content/xml/content/src/nsXMLCDATASection.cpp b/content/xml/content/src/nsXMLCDATASection.cpp index a15c0db95b2f..f64e09e785c9 100644 --- a/content/xml/content/src/nsXMLCDATASection.cpp +++ b/content/xml/content/src/nsXMLCDATASection.cpp @@ -167,8 +167,6 @@ nsXMLCDATASection::Clone(nsINodeInfo *aNodeInfo, PRBool aCloneText) const void nsXMLCDATASection::List(FILE* out, PRInt32 aIndent) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRInt32 index; for (index = aIndent; --index >= 0; ) fputs(" ", out); diff --git a/content/xml/content/src/nsXMLProcessingInstruction.cpp b/content/xml/content/src/nsXMLProcessingInstruction.cpp index 4ae05c2012f5..454847cb4cc2 100644 --- a/content/xml/content/src/nsXMLProcessingInstruction.cpp +++ b/content/xml/content/src/nsXMLProcessingInstruction.cpp @@ -183,8 +183,6 @@ nsXMLProcessingInstruction::Clone(nsINodeInfo *aNodeInfo, void nsXMLProcessingInstruction::List(FILE* out, PRInt32 aIndent) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRInt32 index; for (index = aIndent; --index >= 0; ) fputs(" ", out); diff --git a/content/xul/content/src/nsXULElement.cpp b/content/xul/content/src/nsXULElement.cpp index 25f06b0d5aba..b73097611ef9 100644 --- a/content/xul/content/src/nsXULElement.cpp +++ b/content/xul/content/src/nsXULElement.cpp @@ -1574,8 +1574,6 @@ rdf_Indent(FILE* out, PRInt32 aIndent) void nsXULElement::List(FILE* out, PRInt32 aIndent) const { - NS_PRECONDITION(IsInDoc(), "bad content"); - PRUint32 i; rdf_Indent(out, aIndent);