From 10f629714da6c87f973b69e3efe9690306e3d692 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Thu, 10 Apr 2003 23:26:36 +0000 Subject: [PATCH] Remove lines that do nothing except leak. r+sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@141007 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/style/src/nsCSSStyleRule.cpp | 3 --- mozilla/layout/style/nsCSSStyleRule.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/mozilla/content/html/style/src/nsCSSStyleRule.cpp b/mozilla/content/html/style/src/nsCSSStyleRule.cpp index 622221b74f2..5a398221890 100644 --- a/mozilla/content/html/style/src/nsCSSStyleRule.cpp +++ b/mozilla/content/html/style/src/nsCSSStyleRule.cpp @@ -1118,9 +1118,6 @@ DOMCSSDeclarationImpl::ParseDeclaration(const nsAString& aDecl, getter_AddRefs(cssParser)); if (NS_SUCCEEDED(result)) { - nsCSSDeclaration* declClone = decl->Clone(); - NS_ENSURE_TRUE(declClone, NS_ERROR_OUT_OF_MEMORY); - if (aClearOldDecl) { // This should be done with decl->Clear() once such a method exists. nsAutoString propName; diff --git a/mozilla/layout/style/nsCSSStyleRule.cpp b/mozilla/layout/style/nsCSSStyleRule.cpp index 622221b74f2..5a398221890 100644 --- a/mozilla/layout/style/nsCSSStyleRule.cpp +++ b/mozilla/layout/style/nsCSSStyleRule.cpp @@ -1118,9 +1118,6 @@ DOMCSSDeclarationImpl::ParseDeclaration(const nsAString& aDecl, getter_AddRefs(cssParser)); if (NS_SUCCEEDED(result)) { - nsCSSDeclaration* declClone = decl->Clone(); - NS_ENSURE_TRUE(declClone, NS_ERROR_OUT_OF_MEMORY); - if (aClearOldDecl) { // This should be done with decl->Clear() once such a method exists. nsAutoString propName;