diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp index 36dc59298dd3..429c3a0ca427 100644 --- a/dom/base/Document.cpp +++ b/dom/base/Document.cpp @@ -5064,11 +5064,6 @@ static bool HasPresShell(nsPIDOMWindowOuter* aWindow) { return docShell->GetPresShell() != nullptr; } -nsresult Document::SetEditingState(EditingState aState) { - mEditingState = aState; - return NS_OK; -} - nsresult Document::EditingStateChanged() { if (mRemovedFromDocShell) { return NS_OK; diff --git a/dom/base/Document.h b/dom/base/Document.h index 5d1f8d375dd1..bb9a6ff453b0 100644 --- a/dom/base/Document.h +++ b/dom/base/Document.h @@ -1794,7 +1794,7 @@ class Document : public nsINode, * to enable/disable editing, call EditingStateChanged() or * SetDesignMode(). */ - nsresult SetEditingState(EditingState aState); + void SetEditingState(EditingState aState) { mEditingState = aState; } /** * Called when this Document's editor is destroyed.