diff options
author | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-04-29 21:25:54 +0200 |
---|---|---|
committer | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-04-29 21:25:54 +0200 |
commit | b007b622d1c3630f44a2a09dab6668ec4b2dafda (patch) | |
tree | cc367802b7944ba6d2f2b7acf58d94d8893ea5f1 /utils | |
parent | eecf255ed7aaabb9ce2decd80dd115240e468327 (diff) |
forgot
Diffstat (limited to 'utils')
-rw-r--r-- | utils/dict.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/dict.h b/utils/dict.h index 595e4f9f..5fd6412c 100644 --- a/utils/dict.h +++ b/utils/dict.h @@ -3,7 +3,6 @@ #include <cassert> #include <cstring> - #include <string> #include <vector> #include "hash.h" @@ -73,7 +72,6 @@ class Dict { inline const std::string& Convert(const WordID& id) const { if (id == 0) return b0_; assert(id <= (int)words_.size()); - if (id < 0 || id > (int)words_.size()) return b0_; return words_[id-1]; } |