remove some verbose debugging messages

This commit is contained in:
akkana%netscape.com 1999-01-23 00:38:54 +00:00
Родитель fd0965aadc
Коммит cfdcb911fb
2 изменённых файлов: 0 добавлений и 50 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;