Skip to content

Commit

Permalink
Bug 1717156 - part 3: Get rid of nsIEditor::eEditorFilterInputMask
Browse files Browse the repository at this point in the history
…and its accessor r=m_kato

Nobody (including comm-central and BlueGriffon) uses
`nsIEditor::eEditorFilterInputMask`.  Therefore, we can get rid of this and its
accessor, `EditorBase::IsInputFiltered()`.

Differential Revision: https://phabricator.services.mozilla.com/D118263
  • Loading branch information
masayuki-nakano committed Jun 22, 2021
1 parent 9d93422 commit 1cf3688
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions editor/libeditor/EditorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,6 @@ class EditorBase : public nsIEditor,
return (mFlags & nsIEditor::eEditorReadonlyMask) != 0;
}

bool IsInputFiltered() const {
return (mFlags & nsIEditor::eEditorFilterInputMask) != 0;
}

bool IsMailEditor() const {
const bool isMailEditor = (mFlags & nsIEditor::eEditorMailMask) != 0;
MOZ_ASSERT_IF(isMailEditor, IsHTMLEditor());
Expand Down
2 changes: 0 additions & 2 deletions editor/nsIEditor.idl
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ interface nsIEditor : nsISupports
// this flag does not change the style of editor. This just changes the
// internal editor's readonly state.
const long eEditorReadonlyMask = 0x0008;
// text input is limited to certain character types, use mFilter
const long eEditorFilterInputMask = 0x0010;
// If you want an HTML editor to work as an email composer, specify this flag.
// So, this is not available with text editor instances.
const long eEditorMailMask = 0x0020;
Expand Down

0 comments on commit 1cf3688

Please sign in to comment.