summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accessible/base/SelectionManager.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/accessible/base/SelectionManager.cpp b/accessible/base/SelectionManager.cpp
index 662ba52b70..30e01cbfcd 100644
--- a/accessible/base/SelectionManager.cpp
+++ b/accessible/base/SelectionManager.cpp
@@ -120,24 +120,6 @@ SelectionManager::RemoveDocSelectionListener(nsIPresShell* aPresShell)
// selection.
Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck);
spellSel->RemoveSelectionListener(this);
-
- if (mCurrCtrlNormalSel) {
- if (mCurrCtrlNormalSel->GetPresShell() == aPresShell) {
- // Remove 'this' registered as selection listener for the normal selection
- // if we are removing listeners for its PresShell.
- mCurrCtrlNormalSel->RemoveSelectionListener(this);
- mCurrCtrlNormalSel = nullptr;
- }
- }
-
- if (mCurrCtrlSpellSel) {
- if (mCurrCtrlSpellSel->GetPresShell() == aPresShell) {
- // Remove 'this' registered as selection listener for the spellcheck
- // selection if we are removing listeners for its PresShell.
- mCurrCtrlSpellSel->RemoveSelectionListener(this);
- mCurrCtrlSpellSel = nullptr;
- }
- }
}
void