From b007b622d1c3630f44a2a09dab6668ec4b2dafda Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 29 Apr 2012 21:25:54 +0200 Subject: forgot --- utils/dict.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'utils') 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 #include - #include #include #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]; } -- cgit v1.2.3