Bug 638647 - Remove unused AfterHighlightColorChange function from editor.js
r=neil
--- a/editor/ui/composer/content/editor.js
+++ b/editor/ui/composer/content/editor.js
@@ -198,32 +198,16 @@ nsPrefListener.prototype =
ShowHideToolbarSeparators(button.parentNode);
}
}
else if (editor && (prefName == kCRInParagraphsPref))
editor.returnInParagraphCreatesNewParagraph = gPrefs.getBoolPref(prefName);
}
}
-function AfterHighlightColorChange()
-{
- if (!IsHTMLEditor())
- return;
-
- var button = document.getElementById("cmd_highlight");
- if (button) {
- var mixedObj = {};
- try {
- var state = GetCurrentEditor().getHighlightColorState(mixedObj);
- button.setAttribute("state", state);
- onHighlightColorChange();
- } catch (e) {}
- }
-}
-
function EditorOnLoad()
{
// See if argument was passed.
if ( window.arguments && window.arguments[0] ) {
// Opened via window.openDialog with URL as argument.
// Put argument where EditorStartup expects it.
document.getElementById( "args" ).setAttribute( "value", window.arguments[0] );
}