From cfdcb911fb9581017b648fe4c6332ef564cd38c0 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Sat, 23 Jan 1999 00:38:54 +0000 Subject: [PATCH] remove some verbose debugging messages --- content/base/src/nsRange.cpp | 25 ------------------------- layout/base/src/nsRange.cpp | 25 ------------------------- 2 files changed, 50 deletions(-) diff --git a/content/base/src/nsRange.cpp b/content/base/src/nsRange.cpp index e5a6a34b010..1d832ac680a 100644 --- a/content/base/src/nsRange.cpp +++ b/content/base/src/nsRange.cpp @@ -282,31 +282,6 @@ nsresult nsRange::DoSetRange(nsIDOMNode* aStartN, PRInt32 aStartOffset, if (mStartParent) mIsPositioned = PR_TRUE; else mIsPositioned = PR_FALSE; -#ifdef DEBUG_akkana - if (mIsPositioned) - { - nsString name, value; - char *nameS, *valueS; - mStartParent->GetNodeName(name); - mStartParent->GetNodeValue(value); - nameS = name.ToNewCString(); - valueS = value.ToNewCString(); - printf("DoSetRange: StartParent = '%s'%s', StartOffset = %d\n", - nameS, valueS, mStartOffset); - delete nameS; - delete valueS; - - mEndParent->GetNodeName(name); - mEndParent->GetNodeValue(value); - nameS = name.ToNewCString(); - valueS = value.ToNewCString(); - printf("DoSetRange: EndParent = '%s'%s', StartOffset = %d\n", - nameS, valueS, mStartOffset); - delete nameS; - delete valueS; - } -#endif /* DEBUG_akkana */ - // FIX ME need to handle error cases // (range lists return error, or setting only one endpoint to null) return NS_OK; diff --git a/layout/base/src/nsRange.cpp b/layout/base/src/nsRange.cpp index e5a6a34b010..1d832ac680a 100644 --- a/layout/base/src/nsRange.cpp +++ b/layout/base/src/nsRange.cpp @@ -282,31 +282,6 @@ nsresult nsRange::DoSetRange(nsIDOMNode* aStartN, PRInt32 aStartOffset, if (mStartParent) mIsPositioned = PR_TRUE; else mIsPositioned = PR_FALSE; -#ifdef DEBUG_akkana - if (mIsPositioned) - { - nsString name, value; - char *nameS, *valueS; - mStartParent->GetNodeName(name); - mStartParent->GetNodeValue(value); - nameS = name.ToNewCString(); - valueS = value.ToNewCString(); - printf("DoSetRange: StartParent = '%s'%s', StartOffset = %d\n", - nameS, valueS, mStartOffset); - delete nameS; - delete valueS; - - mEndParent->GetNodeName(name); - mEndParent->GetNodeValue(value); - nameS = name.ToNewCString(); - valueS = value.ToNewCString(); - printf("DoSetRange: EndParent = '%s'%s', StartOffset = %d\n", - nameS, valueS, mStartOffset); - delete nameS; - delete valueS; - } -#endif /* DEBUG_akkana */ - // FIX ME need to handle error cases // (range lists return error, or setting only one endpoint to null) return NS_OK;