Bug 705438 - Remove dead code: nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*, const nsAString&); r=ehsan
authorMs2ger <ms2ger@gmail.com>
Sat, 03 Dec 2011 22:50:17 +0100
changeset 83008 95d2ceb6b8ed51de1193f995010a077f75a845f7
parent 83007 9797cb9d577bdafad4b9d01b580edc0f6bfa395c
child 83009 eb1b0c46ddd684dcbf16156ba05d68d444eb87ef
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs705438
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 705438 - Remove dead code: nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement*, const nsAString&); r=ehsan
editor/libeditor/html/nsHTMLCSSUtils.cpp
editor/libeditor/html/nsHTMLCSSUtils.h
--- a/editor/libeditor/html/nsHTMLCSSUtils.cpp
+++ b/editor/libeditor/html/nsHTMLCSSUtils.cpp
@@ -1396,22 +1396,8 @@ nsresult
 nsHTMLCSSUtils::SetCSSPropertyPixels(nsIDOMElement * aElement,
                                      const nsAString & aProperty,
                                      PRInt32 aIntValue)
 {
   nsAutoString s;
   s.AppendInt(aIntValue);
   return SetCSSProperty(aElement, aProperty, s + NS_LITERAL_STRING("px"));
 }
-
-nsresult
-nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement * aElement,
-                                  const nsAString & aProperty)
-{
-  nsCOMPtr<nsIDOMCSSStyleDeclaration> cssDecl;
-  PRUint32 length;
-  nsresult res = GetInlineStyles(aElement, getter_AddRefs(cssDecl), &length);
-  if (NS_FAILED(res) || !cssDecl) return res;
-
-  nsAutoString returnString;
-  return cssDecl->RemoveProperty(aProperty, returnString);
-}
-
--- a/editor/libeditor/html/nsHTMLCSSUtils.h
+++ b/editor/libeditor/html/nsHTMLCSSUtils.h
@@ -134,18 +134,16 @@ public:
     * @param aValue         [IN] a string containing the new value of the CSS property
     */
   nsresult    SetCSSProperty(nsIDOMElement * aElement,
                              const nsAString & aProperty,
                              const nsAString & aValue);
   nsresult    SetCSSPropertyPixels(nsIDOMElement * aElement,
                                    const nsAString & aProperty,
                                    PRInt32 aIntValue);
-  nsresult    RemoveCSSProperty(nsIDOMElement * aElement,
-                                const nsAString & aProperty);
 
   /** gets the specified/computed style value of a CSS property for a given node (or its element
     * ancestor if it is not an element)
     *
     * @param aNode          [IN] a DOM node
     * @param aProperty      [IN] an atom containing the CSS property to get
     * @param aPropertyValue [OUT] the retrieved value of the property
     */