mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
remove user-debug code that no longer compiles. r=shaver (no bug)
This commit is contained in:
parent
e095596460
commit
b3afded489
@ -283,36 +283,6 @@ nsHTMLSelectElement::InsertOptionsIntoList(nsIContent* aOptions,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_john
|
||||
nsresult
|
||||
nsHTMLSelectElement::PrintOptions(nsIContent* aOptions, PRInt32 tabs)
|
||||
{
|
||||
for (PRInt32 i=0;i<tabs;i++) {
|
||||
printf(" ");
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMHTMLElement> elem(do_QueryInterface(aOptions));
|
||||
if (elem) {
|
||||
nsAutoString s;
|
||||
elem->GetTagName(s);
|
||||
printf("<%s>\n", NS_ConvertUTF16toUTF8(s).get());
|
||||
} else {
|
||||
printf(">>text\n");
|
||||
}
|
||||
|
||||
// Recurse down into optgroups
|
||||
if (IsOptGroup(aOptions)) {
|
||||
PRUint32 numChildren = aOptions->GetChildCount();
|
||||
|
||||
for (PRUint32 i = 0; i < numChildren; ++i) {
|
||||
PrintOptions(aOptions->GetChildAt(i), tabs + 1);
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
nsresult
|
||||
nsHTMLSelectElement::RemoveOptionsFromList(nsIContent* aOptions,
|
||||
PRInt32 aListIndex,
|
||||
|
Loading…
Reference in New Issue
Block a user