diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 12:58:29 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 13:48:27 +0300 |
commit | b9f216cc96fda35fad9983037f02100e611c55fc (patch) | |
tree | 473c6cb6cca70f385bbb0edc9eeb380c988508bb /moses/ChartHypothesis.cpp | |
parent | f7839c42d5cf2de17e86ec16df5e2f541ba53c75 (diff) |
delete use of mempool in Hypos. Never used. Getting in the way of next refactoring
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r-- | moses/ChartHypothesis.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp index d06f5fe76..5f92b19a9 100644 --- a/moses/ChartHypothesis.cpp +++ b/moses/ChartHypothesis.cpp @@ -37,10 +37,6 @@ using namespace std; namespace Moses { -#ifdef USE_HYPO_POOL -ObjectPool<ChartHypothesis> ChartHypothesis::s_objectPool("ChartHypothesis", 300000); -#endif - /** Create a hypothesis from a rule * \param transOpt wrapper around the rule * \param item @todo dunno @@ -93,7 +89,7 @@ ChartHypothesis::~ChartHypothesis() ChartArcList::iterator iter; for (iter = m_arcList->begin() ; iter != m_arcList->end() ; ++iter) { ChartHypothesis *hypo = *iter; - Delete(hypo); + delete hypo; } m_arcList->clear(); @@ -278,7 +274,7 @@ void ChartHypothesis::CleanupArcList() ChartArcList::iterator iter; for (iter = m_arcList->begin() + nBestSize ; iter != m_arcList->end() ; ++iter) { ChartHypothesis *arc = *iter; - ChartHypothesis::Delete(arc); + delete arc; } m_arcList->erase(m_arcList->begin() + nBestSize , m_arcList->end()); |