Bug 710987 - Remove duplicate conditional in WordSplitState::FindSpecialWord(); r=roc
authorThomas Prip Vestergaard <thomas@prip.nu>
Tue, 20 Dec 2011 16:14:05 +0000
changeset 84767 6fcec9ac1164af3f4a50fd7822761d9e802bc6a6
parent 84766 d2bb564589fce7f62a5ece863fbc5b002a0e25c5
child 84768 eeb4b35a1ea8ffce448e11fd66d3908a0e0d5273
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs710987
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 710987 - Remove duplicate conditional in WordSplitState::FindSpecialWord(); r=roc
extensions/spellcheck/src/mozInlineSpellWordUtil.cpp
--- a/extensions/spellcheck/src/mozInlineSpellWordUtil.cpp
+++ b/extensions/spellcheck/src/mozInlineSpellWordUtil.cpp
@@ -964,17 +964,16 @@ WordSplitState::FindSpecialWord()
   // plug in new protocols. We also don't want to waste time here checking
   // against a lot of obscure protocols.
   if (firstColon > mDOMWordOffset) {
     nsString protocol(Substring(mDOMWordText, mDOMWordOffset,
                       firstColon - mDOMWordOffset));
     if (protocol.EqualsIgnoreCase("http") ||
         protocol.EqualsIgnoreCase("https") ||
         protocol.EqualsIgnoreCase("news") ||
-        protocol.EqualsIgnoreCase("ftp") ||
         protocol.EqualsIgnoreCase("file") ||
         protocol.EqualsIgnoreCase("javascript") ||
         protocol.EqualsIgnoreCase("ftp")) {
       return mDOMWordText.Length() - mDOMWordOffset;
     }
   }
 
   // not anything special