aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/PropSet.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-07-10 12:26:15 +0000
committernyamatongwe <devnull@localhost>2000-07-10 12:26:15 +0000
commita4b9ba8e601d1f2d0693a7edcd2fb4dd75fc583e (patch)
tree0c7b8fd77bb1ed3c07fa375e4799dc71bc69ca5a /include/PropSet.h
parented0545bea646d94a29a05b56fd5d998d05a4a30d (diff)
downloadscintilla-mirror-a4b9ba8e601d1f2d0693a7edcd2fb4dd75fc583e.tar.gz
Moved EntryMemory from Scintilla to SciTE as it is only used there.
Diffstat (limited to 'include/PropSet.h')
-rw-r--r--include/PropSet.h33
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.