From 77d159fca430825cfa19ca3504c7bf8d4ba846b2 Mon Sep 17 00:00:00 2001 From: Barry Haddow Date: Wed, 16 Nov 2011 10:40:04 +0000 Subject: [PATCH] remove getFeatureNames() --- moses/src/ScoreProducer.cpp | 23 ----------------------- moses/src/ScoreProducer.h | 1 - 2 files changed, 24 deletions(-) diff --git a/moses/src/ScoreProducer.cpp b/moses/src/ScoreProducer.cpp index 4a07b245b..fa84065d4 100644 --- a/moses/src/ScoreProducer.cpp +++ b/moses/src/ScoreProducer.cpp @@ -34,28 +34,5 @@ ScoreProducer::ScoreProducer(const std::string& description, size_t numScoreComp ScoreProducer::~ScoreProducer() {} -const vector& ScoreProducer::GetFeatureNames() const -{ - if (m_names.size() != GetNumScoreComponents() && - unlimited != GetNumScoreComponents()) - { - const string& desc = GetScoreProducerDescription(); - if (GetNumScoreComponents() == 1) - { - m_names.push_back(FName(desc)); - } - else - { - for (size_t i = 1; i <= GetNumScoreComponents(); ++i) - { - ostringstream id; - id << i; - m_names.push_back(FName(desc,id.str())); - } - } - } - return m_names; -} - } diff --git a/moses/src/ScoreProducer.h b/moses/src/ScoreProducer.h index ddf532812..24ffa7416 100644 --- a/moses/src/ScoreProducer.h +++ b/moses/src/ScoreProducer.h @@ -19,7 +19,6 @@ namespace Moses class ScoreProducer { private: - mutable std::vector m_names; //for features with fixed number of values std::string m_description; bool m_reportSparseFeatures; size_t m_numScoreComponents;