Bug 475837: Remove unused member vars "mDictionary" and "mIgnoreList" from mozPersonalDictionary.h & mozSpellChecker.h. r=smaug
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 04 Jun 2010 13:38:19 -0700
changeset 43105 661a75f690120fd61308e7cec893e866dd9c0e87
parent 43104 ddd93345ad4896c3165e36f83c76e6a8f68ef8ed
child 43106 dbfe682799ef0aa329342c3fedb8f8d2f0b44a62
child 43291 09ad04b1a53e3311f7f3aea9f7eb307ea8a1d655
push id13619
push userdholbert@mozilla.com
push dateFri, 04 Jun 2010 20:39:45 +0000
treeherdermozilla-central@661a75f69012 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs475837
milestone1.9.3a5pre
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 475837: Remove unused member vars "mDictionary" and "mIgnoreList" from mozPersonalDictionary.h & mozSpellChecker.h. r=smaug
extensions/spellcheck/src/mozPersonalDictionary.h
extensions/spellcheck/src/mozSpellChecker.h
--- a/extensions/spellcheck/src/mozPersonalDictionary.h
+++ b/extensions/spellcheck/src/mozPersonalDictionary.h
@@ -41,17 +41,16 @@
 #include "nsCOMPtr.h"
 #include "nsString.h"
 #include "nsVoidArray.h"
 #include "mozIPersonalDictionary.h"
 #include "nsIUnicodeEncoder.h"
 #include "nsIObserver.h"
 #include "nsWeakReference.h"
 #include "nsTHashtable.h"
-#include "nsTArray.h"
 #include "nsCRT.h"
 #include "nsCycleCollectionParticipant.h"
 
 #define MOZ_PERSONALDICTIONARY_CONTRACTID "@mozilla.org/spellchecker/personaldictionary;1"
 #define MOZ_PERSONALDICTIONARY_CID         \
 { /* 7EF52EAF-B7E1-462B-87E2-5D1DBACA9048 */  \
 0X7EF52EAF, 0XB7E1, 0X462B, \
   { 0X87, 0XE2, 0X5D, 0X1D, 0XBA, 0XCA, 0X90, 0X48 } }
@@ -99,16 +98,15 @@ public:
   NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(mozPersonalDictionary, mozIPersonalDictionary)
 
   mozPersonalDictionary();
   virtual ~mozPersonalDictionary();
 
   nsresult Init();
 
 protected:
-  nsTArray<nsString>  mDictionary;  /* use something a little smarter eventually*/
   PRBool         mDirty;       /* has the dictionary been modified */
   nsTHashtable<nsUniCharEntry> mDictionaryTable;
   nsTHashtable<nsUniCharEntry> mIgnoreTable;
   nsCOMPtr<nsIUnicodeEncoder>  mEncoder; /*Encoder to use to compare with spellchecker word */
 };
 
 #endif
--- a/extensions/spellcheck/src/mozSpellChecker.h
+++ b/extensions/spellcheck/src/mozSpellChecker.h
@@ -83,17 +83,16 @@ protected:
 
   // Hastable maps directory name to the spellchecker contract ID
   nsClassHashtable<nsStringHashKey, nsCString> mDictionariesMap;
 
   nsString mDictionaryName;
   nsCString *mCurrentEngineContractId;
   nsCOMPtr<mozISpellCheckingEngine>  mSpellCheckingEngine;
   PRBool mFromStart;
-  nsTArray<nsString> mIgnoreList;
 
   nsresult SetupDoc(PRInt32 *outBlockOffset);
 
   nsresult GetCurrentBlockIndex(nsITextServicesDocument *aDoc, PRInt32 *outBlockIndex);
 
   nsresult InitSpellCheckDictionaryMap();
 };
 #endif // mozSpellChecker_h__