Bug 1589851 - Remove unused code from navigatorDD.js. r=frg
authorIan Neal <iann_cvs@blueyonder.co.uk>
Wed, 30 Oct 2019 18:59:25 +0100
changeset 37394 0b7ede1a9fc946b5a2affbead4cd22f519b85279
parent 37393 57ed655003489810c820fce4ff0eeab7aa25c95d
child 37395 33f38b1be661c8bd6de782fb80c8aef0032ee593
push id396
push userclokep@gmail.com
push dateMon, 06 Jan 2020 23:11:57 +0000
reviewersfrg
bugs1589851
Bug 1589851 - Remove unused code from navigatorDD.js. r=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;");
 }