Bug 653418 - Remove MOZ2.0 code from Sanitizer.jsm r=jh
authorIan Neal <iann_cvs@blueyonder.co.uk>
Tue, 03 May 2011 23:24:12 +0100
changeset 7681 a9e673365a1194ca536e07867df053701e5bc157
parent 7680 7e6e9dc6e84dde99642070b3b87f0f3ef0177919
child 7683 d2ee32445c151fc7e0930c105fbde017d3262a3c
push idunknown
push userunknown
push dateunknown
reviewersjh
bugs653418
Bug 653418 - Remove MOZ2.0 code from Sanitizer.jsm r=jh
suite/modules/Sanitizer.jsm
--- a/suite/modules/Sanitizer.jsm
+++ b/suite/modules/Sanitizer.jsm
@@ -133,22 +133,19 @@ var Sanitizer = {
         !this._prefs.prefHasUserValue("didShutdownSanitize"))
       this.readSettings();
     else
       this.clearSettings();
   },
 
   // clear plugin data
   _clearPluginData: function(aFlagName) {
-    // change this to nsIPluginHost after 2.0
-    const nsIPluginHost = Components.interfaces.nsIPluginHost_MOZILLA_2_0_BRANCH;
+    const nsIPluginHost = Components.interfaces.nsIPluginHost;
     var ph = Components.classes["@mozilla.org/plugin/host;1"]
                        .getService(nsIPluginHost);
-    // delete this after 2.0
-    ph.QueryInterface(Components.interfaces.nsIPluginHost);
 
     if (!(aFlagName in nsIPluginHost))
       return;
 
     var flag = nsIPluginHost[aFlagName];
     var tags = ph.getPluginTags();
     for (var i = 0; i < tags.length; i++) {
       try {