Bug 1632726 - part 2: Remove some unused nsISelectionController methods r=smaug

Even in comm-central and BlueGriffon, `nsISelectionController::*ForDelete()`
are not used.  Therefore, we can remove them safely.

Differential Revision: https://phabricator.services.mozilla.com/D72296
This commit is contained in:
Masayuki Nakano
2020-04-27 06:20:31 +00:00
parent d407be77f3
commit ab72c0dfa5
6 changed files with 0 additions and 107 deletions

View File

@@ -336,10 +336,7 @@ class TextInputSelectionController final : public nsSupportsWeakReference,
NS_IMETHOD PhysicalMove(int16_t aDirection, int16_t aAmount,
bool aExtend) override;
NS_IMETHOD CharacterMove(bool aForward, bool aExtend) override;
NS_IMETHOD CharacterExtendForDelete() override;
NS_IMETHOD CharacterExtendForBackspace() override;
NS_IMETHOD WordMove(bool aForward, bool aExtend) override;
NS_IMETHOD WordExtendForDelete(bool aForward) override;
NS_IMETHOD LineMove(bool aForward, bool aExtend) override;
NS_IMETHOD IntraLineMove(bool aForward, bool aExtend) override;
MOZ_CAN_RUN_SCRIPT
@@ -591,24 +588,6 @@ TextInputSelectionController::CharacterMove(bool aForward, bool aExtend) {
return frameSelection->CharacterMove(aForward, aExtend);
}
NS_IMETHODIMP
TextInputSelectionController::CharacterExtendForDelete() {
if (!mFrameSelection) {
return NS_ERROR_NULL_POINTER;
}
RefPtr<nsFrameSelection> frameSelection = mFrameSelection;
return frameSelection->CharacterExtendForDelete();
}
NS_IMETHODIMP
TextInputSelectionController::CharacterExtendForBackspace() {
if (!mFrameSelection) {
return NS_ERROR_NULL_POINTER;
}
RefPtr<nsFrameSelection> frameSelection = mFrameSelection;
return frameSelection->CharacterExtendForBackspace();
}
NS_IMETHODIMP
TextInputSelectionController::WordMove(bool aForward, bool aExtend) {
if (!mFrameSelection) {
@@ -618,15 +597,6 @@ TextInputSelectionController::WordMove(bool aForward, bool aExtend) {
return frameSelection->WordMove(aForward, aExtend);
}
NS_IMETHODIMP
TextInputSelectionController::WordExtendForDelete(bool aForward) {
if (!mFrameSelection) {
return NS_ERROR_NULL_POINTER;
}
RefPtr<nsFrameSelection> frameSelection = mFrameSelection;
return frameSelection->WordExtendForDelete(aForward);
}
NS_IMETHODIMP
TextInputSelectionController::LineMove(bool aForward, bool aExtend) {
if (!mFrameSelection) {