diff options
author | nyamatongwe <devnull@localhost> | 2013-04-01 15:21:38 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-04-01 15:21:38 +1100 |
commit | 4a66921d736e709d59beb776e7f7bdee74e68cc3 (patch) | |
tree | b856b74735b2a962b65ff7a9019cc0a0618e83dd | |
parent | 9e1af40727591017d5d25c8a9a52af0f9bde6cd3 (diff) | |
download | scintilla-mirror-4a66921d736e709d59beb776e7f7bdee74e68cc3.tar.gz |
Variable not needed.
-rw-r--r-- | lexlib/LexerModule.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lexlib/LexerModule.cxx b/lexlib/LexerModule.cxx index defc86356..fc8884dc7 100644 --- a/lexlib/LexerModule.cxx +++ b/lexlib/LexerModule.cxx @@ -74,11 +74,9 @@ int LexerModule::GetNumWordLists() const { } const char *LexerModule::GetWordListDescription(int index) const { - static const char *emptyStr = ""; - assert(index < GetNumWordLists()); if (index >= GetNumWordLists()) { - return emptyStr; + return ""; } else { return wordListDescriptions[index]; } |