From 589baef929049f6f17ad0c88e7853ba405ec368b Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Sat, 12 Jun 1999 21:13:15 +0000 Subject: [PATCH] minor cleanup, removal of old code git-svn-id: svn://10.0.0.236/trunk@35031 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/ChangeAttributeTxn.cpp | 7 ------- mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp | 7 ------- 2 files changed, 14 deletions(-) diff --git a/mozilla/editor/base/ChangeAttributeTxn.cpp b/mozilla/editor/base/ChangeAttributeTxn.cpp index 872973c1d90..afd251047cb 100644 --- a/mozilla/editor/base/ChangeAttributeTxn.cpp +++ b/mozilla/editor/base/ChangeAttributeTxn.cpp @@ -53,10 +53,6 @@ NS_IMETHODIMP ChangeAttributeTxn::Init(nsIEditor *aEditor, NS_IMETHODIMP ChangeAttributeTxn::Do(void) { // need to get the current value of the attribute and save it, and set mAttributeWasSet - const int stringlen=100; - char attributeAsCString[stringlen+1]; - char valueAsCString[stringlen+1]; - mAttribute.ToCString(attributeAsCString, stringlen); mAttributeWasSet; nsresult result = mEditor->GetAttributeValue(mElement, mAttribute, mUndoValue, mAttributeWasSet); // XXX: hack until attribute-was-set code is implemented @@ -64,9 +60,6 @@ NS_IMETHODIMP ChangeAttributeTxn::Do(void) mAttributeWasSet=PR_TRUE; // XXX: end hack - if (mAttributeWasSet) - mUndoValue.ToCString(valueAsCString, stringlen); - // now set the attribute to the new value if (PR_FALSE==mRemoveAttribute) result = mElement->SetAttribute(mAttribute, mValue); diff --git a/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp b/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp index 872973c1d90..afd251047cb 100644 --- a/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp +++ b/mozilla/editor/libeditor/base/ChangeAttributeTxn.cpp @@ -53,10 +53,6 @@ NS_IMETHODIMP ChangeAttributeTxn::Init(nsIEditor *aEditor, NS_IMETHODIMP ChangeAttributeTxn::Do(void) { // need to get the current value of the attribute and save it, and set mAttributeWasSet - const int stringlen=100; - char attributeAsCString[stringlen+1]; - char valueAsCString[stringlen+1]; - mAttribute.ToCString(attributeAsCString, stringlen); mAttributeWasSet; nsresult result = mEditor->GetAttributeValue(mElement, mAttribute, mUndoValue, mAttributeWasSet); // XXX: hack until attribute-was-set code is implemented @@ -64,9 +60,6 @@ NS_IMETHODIMP ChangeAttributeTxn::Do(void) mAttributeWasSet=PR_TRUE; // XXX: end hack - if (mAttributeWasSet) - mUndoValue.ToCString(valueAsCString, stringlen); - // now set the attribute to the new value if (PR_FALSE==mRemoveAttribute) result = mElement->SetAttribute(mAttribute, mValue);