diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 21:24:11 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 21:24:11 +0000 |
commit | e673f6c30e81834c47ff5e53712119b3ecf7f2a8 (patch) | |
tree | d961245488144ef43d3ca52ec8e03eea507e24db /chrome/browser/render_view_context_menu_controller.cc | |
parent | 5c9587c69c6fc62164b35b24c92603935fb5dd2a (diff) | |
download | chromium_src-e673f6c30e81834c47ff5e53712119b3ecf7f2a8.zip chromium_src-e673f6c30e81834c47ff5e53712119b3ecf7f2a8.tar.gz chromium_src-e673f6c30e81834c47ff5e53712119b3ecf7f2a8.tar.bz2 |
Cleanup part 4.
Remove dead/unnecessary resources/identifiers/code.
The trickiest bit of this to review are the browser.cc changes, where various commands are no longer initialized multiple times.
Review URL: http://codereview.chromium.org/13648
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_view_context_menu_controller.cc')
-rw-r--r-- | chrome/browser/render_view_context_menu_controller.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/render_view_context_menu_controller.cc b/chrome/browser/render_view_context_menu_controller.cc index f8c77cb..bedad0e 100644 --- a/chrome/browser/render_view_context_menu_controller.cc +++ b/chrome/browser/render_view_context_menu_controller.cc @@ -249,9 +249,8 @@ void RenderViewContextMenuController::ExecuteCommand(int id) { if (id >= IDC_SPELLCHECK_LANGUAGES_FIRST && id < IDC_SPELLCHECK_LANGUAGES_LAST) { std::vector<std::wstring> display_language_vector; - int current_language = SpellChecker:: - GetSpellCheckLanguagesToDisplayInContextMenu( - source_web_contents_->profile(), &display_language_vector); + SpellChecker::GetSpellCheckLanguagesToDisplayInContextMenu( + source_web_contents_->profile(), &display_language_vector); if (id - IDC_SPELLCHECK_LANGUAGES_FIRST < static_cast<int>(display_language_vector.size())) { StringPrefMember dictionary_language; |