Bug 638647 - Remove unused AfterHighlightColorChange function from editor.js
authorIan Neal <iann_cvs@blueyonder.co.uk>
Fri, 04 Mar 2011 18:43:14 +0000
changeset 7253 f2f42e0e284dd1013b2f0db1379344dd9714d210
parent 7252 3f9ac1aeea35b4040debe060a5bd35685b48f0e2
child 7254 18feac9335869622054679f23a48c0bff92bf586
push idunknown
push userunknown
push dateunknown
bugs638647
Bug 638647 - Remove unused AfterHighlightColorChange function from editor.js r=neil
editor/ui/composer/content/editor.js
--- 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] );
     }