summaryrefslogtreecommitdiff
path: root/utils/dict.h
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-29 21:25:54 +0200
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-29 21:25:54 +0200
commit4bf742b23abaa827a989d576e0774eaa9649a86e (patch)
treed488b78bfef9b04142bf050a9587cf1404735d6a /utils/dict.h
parent1c0b252dfa0169eef0a4bdb7442d433b2bf8c1c7 (diff)
forgot
Diffstat (limited to 'utils/dict.h')
-rw-r--r--utils/dict.h2
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];
}