Bug 1498041 - Turn on ESLint in mail/base/content: remove dead code with undefined variable; r=aceman
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 23 Nov 2018 22:35:27 +1300
changeset 33771 f91bceb3c9f70c4a8a44c9dfc5ce54d87ba2bc04
parent 33770 d61233a819393705eb09d5ba4e14191be39ea1f1
child 33772 ea243e192c5f11b0bf49ade0a04878807a060d9d
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersaceman
bugs1498041
Bug 1498041 - Turn on ESLint in mail/base/content: remove dead code with undefined variable; r=aceman
mail/base/content/nsContextMenu.js
--- a/mail/base/content/nsContextMenu.js
+++ b/mail/base/content/nsContextMenu.js
@@ -621,27 +621,16 @@ nsContextMenu.prototype = {
    *         The desired CSS property
    * @return the value of the property
    */
   getComputedStyle(aElem, aProp) {
     return aElem.ownerGlobal.getComputedStyle(aElem).getPropertyValue(aProp);
   },
 
   /**
-   * Generate a URL string from a computed style property, for things like
-   * |style="background-image:url(...)"|
-   * @return a "url"-type computed style attribute value, with the "url(" and
-   *         ")" stripped.
-   */
-  getComputedURL(aElem, aProp) {
-    var url = aElem.ownerGlobal.getComputedStyle(aElem).getPropertyCSSValue(aProp);
-    return (url.primitiveType == CSSPrimitiveValue.CSS_URI) ? url.getStringValue() : null;
-  },
-
-  /**
    * Determine whether the clicked-on link can be saved, and whether it
    * may be saved according to the ScriptSecurityManager.
    * @return true if the protocol can be persisted and if the target has
    *         permission to link to the URL, false if not
    */
   isLinkSaveable() {
     try {
       const nsIScriptSecurityManager =