Bug 1246677 - 10 - Removed addStyle from head.js since it was unused draft
authorPatrick Brosset <pbrosset@mozilla.com>
Fri, 12 Feb 2016 14:28:54 +0100
changeset 330662 8591579e0c7d1601f3c0bbbbac15bf75798a6948
parent 330661 c809a86e903acc94eb943d90e8c72de766e6409e
child 330666 5b859e1e4ca9ea2d60aa64339b019f3bdfc83350
push id10801
push userpbrosset@mozilla.com
push dateFri, 12 Feb 2016 13:33:31 +0000
bugs1246677
milestone47.0a1
Bug 1246677 - 10 - Removed addStyle from head.js since it was unused MozReview-Commit-ID: EgoEzxnILrJ
devtools/client/inspector/rules/test/head.js
--- a/devtools/client/inspector/rules/test/head.js
+++ b/devtools/client/inspector/rules/test/head.js
@@ -327,34 +327,16 @@ var waitForSuccess = Task.async(function
       ok(false, "Failure: " + desc);
       break;
     }
     yield new Promise(r => setTimeout(r, 200));
   }
 });
 
 /**
- * Create a new style tag containing the given style text and append it to the
- * document's head node
- *
- * @param {Document} doc
- * @param {String} style
- * @return {DOMNode} The newly created style node
- */
-function addStyle(doc, style) {
-  info("Adding a new style tag to the document with style content: " +
-    style.substring(0, 50));
-  let node = doc.createElement("style");
-  node.setAttribute("type", "text/css");
-  node.textContent = style;
-  doc.getElementsByTagName("head")[0].appendChild(node);
-  return node;
-}
-
-/**
  * Get the dataURL for the font family tooltip.
  *
  * @param {String} font
  *        The font family value.
  * @param {object} nodeFront
  *        The NodeActor that will used to retrieve the dataURL for the
  *        font family tooltip contents.
  */