Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Issue 2228293002: Remove dead code in spell checker (Closed)

Created:
4 years, 4 months ago by Xiaocheng
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, groby+spellwatch_chromium.org, jochen+watch_chromium.org, kinuko+watch, mlamouri+watch-test-runner_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@DeprecateTextCheckingType
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dead code in spell checker This patch removes: 1. TextCheckingType and TextCheckingTypeMask, because all their clients have hard-coded their value to the same constant. 2. WebSpellCheckClient::checkTextOfParagraph() and all its overrides. This function is in fact dead code, because it can only be called with |mask == WebTextCheckingTypeGrammar|, but does not do anything when |mask| does not contain WebTextCheckingTypeSpelling. 3. WebTextCheckingType and WebTextCheckingTypeMask, because their only client is WebSpellCheckClient::checkTextOfParagraph(). BUG=619452 TEST=n/a; no behavior change Committed: https://crrev.com/c66e99411384c332f3fddd1c8114fb8a0bad8e38 Cr-Commit-Position: refs/heads/master@{#411010}

Patch Set 1 #

Patch Set 2 : 201608101257 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -203 lines) Patch
M chrome/renderer/spellchecker/spellcheck_provider.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M components/test_runner/spell_check_client.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/test_runner/spell_check_client.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp View 1 5 chunks +3 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 6 chunks +15 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp View 1 2 chunks +11 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextChecking.h View 1 4 chunks +1 line, -14 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 chunks +0 lines, -9 lines 2 comments Download
M third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp View 1 chunk +1 line, -27 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebSpellCheckClient.h View 1 2 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/public/web/WebTextCheckingType.h View 1 1 chunk +0 lines, -45 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
Xiaocheng
PTAL.
4 years, 4 months ago (2016-08-10 04:52:11 UTC) #7
Xiaocheng
https://codereview.chromium.org/2228293002/diff/20001/third_party/WebKit/Source/web/AssertMatchingEnums.cpp File third_party/WebKit/Source/web/AssertMatchingEnums.cpp (left): https://codereview.chromium.org/2228293002/diff/20001/third_party/WebKit/Source/web/AssertMatchingEnums.cpp#oldcode594 third_party/WebKit/Source/web/AssertMatchingEnums.cpp:594: // TODO(rouslan): Remove these comparisons between text-checking and text-decoration ...
4 years, 4 months ago (2016-08-10 04:57:49 UTC) #8
please use gerrit instead
chrome/renderer/spellchecker/spellcheck_provider.* lgtm https://codereview.chromium.org/2228293002/diff/20001/third_party/WebKit/Source/web/AssertMatchingEnums.cpp File third_party/WebKit/Source/web/AssertMatchingEnums.cpp (left): https://codereview.chromium.org/2228293002/diff/20001/third_party/WebKit/Source/web/AssertMatchingEnums.cpp#oldcode594 third_party/WebKit/Source/web/AssertMatchingEnums.cpp:594: // TODO(rouslan): Remove these comparisons between text-checking ...
4 years, 4 months ago (2016-08-10 05:16:58 UTC) #9
tkent
lgtm
4 years, 4 months ago (2016-08-10 05:59:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2228293002/20001
4 years, 4 months ago (2016-08-10 07:07:40 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-10 08:45:38 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 08:49:04 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c66e99411384c332f3fddd1c8114fb8a0bad8e38
Cr-Commit-Position: refs/heads/master@{#411010}

Powered by Google App Engine
This is Rietveld 408576698