diff options
author | nyamatongwe <devnull@localhost> | 2000-07-10 12:26:15 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-07-10 12:26:15 +0000 |
commit | a4b9ba8e601d1f2d0693a7edcd2fb4dd75fc583e (patch) | |
tree | 0c7b8fd77bb1ed3c07fa375e4799dc71bc69ca5a | |
parent | ed0545bea646d94a29a05b56fd5d998d05a4a30d (diff) | |
download | scintilla-mirror-a4b9ba8e601d1f2d0693a7edcd2fb4dd75fc583e.tar.gz |
Moved EntryMemory from Scintilla to SciTE as it is only used there.
-rw-r--r-- | include/PropSet.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/PropSet.h b/include/PropSet.h index 16b460ed8..f3dbd4659 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -136,39 +136,6 @@ public: void Read(const char *filename, const char *directoryForImports); }; -// This is a fixed length list of strings suitable for display in combo boxes -// as a memory of user entries -template<int sz> -class EntryMemory { - SString entries[sz]; -public: - void Insert(SString s) { - for (int i=0;i<sz;i++) { - if (entries[i] == s) { - for (int j=i;j>0;j--) { - entries[j] = entries[j-1]; - } - entries[0] = s; - return; - } - } - for (int k=sz-1;k>0;k--) { - entries[k] = entries[k-1]; - } - entries[0] = s; - } - int Length() const { - int len = 0; - for (int i=0;i<sz;i++) - if (entries[i].length()) - len++; - return len; - } - SString At(int n) const { - return entries[n]; - } -}; - class WordList { public: // Each word contains at least one character - a empty word acts as sentinal at the end. |