diff options
author | heafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-13 00:04:02 +0400 |
---|---|---|
committer | heafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-13 00:04:02 +0400 |
commit | 541f776198cde053323c958de2ca697e2052f5be (patch) | |
tree | 511e5071598a60e9f128f78e659909c48d0b7b04 /moses | |
parent | e5d15a537e43b8a2828b21206618d5ebe5bedb25 (diff) |
Remove unused calls
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4346 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/LMList.cpp | 1 | ||||
-rw-r--r-- | moses/src/LMList.h | 7 | ||||
-rw-r--r-- | moses/src/LanguageModel.h | 5 |
3 files changed, 1 insertions, 12 deletions
diff --git a/moses/src/LMList.cpp b/moses/src/LMList.cpp index df2b9c6d6..bb75a9c1d 100644 --- a/moses/src/LMList.cpp +++ b/moses/src/LMList.cpp @@ -75,7 +75,6 @@ void LMList::CalcScore(const Phrase &phrase, float &retFullScore, float &retNGra void LMList::Add(LanguageModel *lm) { m_coll.push_back(lm); - m_maxNGramOrder = (lm->GetNGramOrder() > m_maxNGramOrder) ? lm->GetNGramOrder() : m_maxNGramOrder; const ScoreIndexManager &scoreMgr = StaticData::Instance().GetScoreIndexManager(); size_t startInd = scoreMgr.GetBeginIndex(lm->GetScoreBookkeepingID()) diff --git a/moses/src/LMList.h b/moses/src/LMList.h index 601902254..fcc208022 100644 --- a/moses/src/LMList.h +++ b/moses/src/LMList.h @@ -18,7 +18,6 @@ protected: typedef std::list < LanguageModel* > CollType; CollType m_coll; - size_t m_maxNGramOrder; size_t m_minInd, m_maxInd; public: @@ -36,8 +35,7 @@ public: } LMList() - :m_maxNGramOrder(0) - ,m_minInd(std::numeric_limits<size_t>::max()) + :m_minInd(std::numeric_limits<size_t>::max()) ,m_maxInd(0) {} void CleanUp(); @@ -47,9 +45,6 @@ public: void Add(LanguageModel *lm); - size_t GetMaxNGramOrder() const { - return m_maxNGramOrder; - } size_t GetMinIndex() const { return m_minInd; } diff --git a/moses/src/LanguageModel.h b/moses/src/LanguageModel.h index 1c83d63b4..b8e19a8d2 100644 --- a/moses/src/LanguageModel.h +++ b/moses/src/LanguageModel.h @@ -89,11 +89,6 @@ public: return m_implementation->CalcScore(phrase, fullScore, ngramScore, oovCount); } - //! max n-gram order of LM - size_t GetNGramOrder() const { - return m_implementation->GetNGramOrder(); - } - virtual std::string GetScoreProducerDescription(unsigned idx=0) const { return m_implementation->GetScoreProducerDescription(idx); } |