Bug 1589851 - Remove unused code from navigatorDD.js. r=frg a=frg
authorIan Neal <iann_cvs@blueyonder.co.uk>
Wed, 30 Oct 2019 19:16:28 +0100
changeset 32344 77d89c12d65d48a22f94f63995bb98a26e3da901
parent 32343 af96810c66f29ba5017edfd72d2cf979cc407d6f
child 32345 6aa94e4ea6e19b458136a140d8c408e0e8d44911
push id225
push userfrgrahl@gmx.net
push dateWed, 30 Oct 2019 18:44:45 +0000
treeherdercomm-esr60@4f5c19b9a6b7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg, frg
bugs1589851
Bug 1589851 - Remove unused code from navigatorDD.js. r=frg a=frg
suite/browser/navigatorDD.js
--- a/suite/browser/navigatorDD.js
+++ b/suite/browser/navigatorDD.js
@@ -1,50 +1,13 @@
 /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-function _RDF(aType)
-  {
-    return "http://www.w3.org/1999/02/22-rdf-syntax-ns#" + aType;
-  }
-function NC_RDF(aType)
-  {
-    return "http://home.netscape.com/NC-rdf#" + aType;
-  }
-
-var RDFUtils = {
-  getResource: function(aString)
-    {
-      return this.rdf.GetResource(aString, true);
-    },
-
-  getTarget: function(aDS, aSourceID, aPropertyID)
-    {
-      var source = this.getResource(aSourceID);
-      var property = this.getResource(aPropertyID);
-      return aDS.GetTarget(source, property, true);
-    },
-
-  getValueFromResource: function(aResource)
-    {
-      aResource = aResource.QueryInterface(Ci.nsIRDFResource);
-      return aResource ? aResource.Value : null;
-    },
-  _rdf: null,
-  get rdf() {
-    if (!this._rdf) {
-      this._rdf = Cc["@mozilla.org/rdf/rdf-service;1"]
-                    .getService(Ci.nsIRDFService);
-    }
-    return this._rdf;
-  }
-}
-
 function htmlEscape(aString)
 {
   return aString.replace(/&/g, "&amp;")
                 .replace(/>/g, "&gt;")
                 .replace(/</g, "&lt;")
                 .replace(/"/g, "&quot;")
                 .replace(/'/g, "&apos;");
 }