diff options
| author | nyamatongwe <unknown> | 2000-07-10 12:26:15 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-07-10 12:26:15 +0000 | 
| commit | 7fbee89bae51b6713d4862e0e851a9c3e6ef5777 (patch) | |
| tree | 0c7b8fd77bb1ed3c07fa375e4799dc71bc69ca5a | |
| parent | 7092c2cf13f9a9a7598e93bc2652de2f82c04b1e (diff) | |
| download | scintilla-mirror-7fbee89bae51b6713d4862e0e851a9c3e6ef5777.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. | 
