delete GetDecodeType(). Thinking of getting rid of class Dictionary altogther

This commit is contained in:
Hieu Hoang 2013-02-05 18:47:25 +00:00
parent be85bffb19
commit 4417f254a2
4 changed files with 1 additions and 16 deletions

View File

@ -44,10 +44,6 @@ public:
//!Destructor
virtual ~Dictionary();
//! returns whether this dictionary is to be used for Translate or Generate
virtual DecodeType GetDecodeType() const = 0;
};
}

View File

@ -55,12 +55,6 @@ protected:
public:
GenerationDictionary(const std::string &line);
virtual ~GenerationDictionary();
// returns Generate
DecodeType GetDecodeType() const
{
return Generate;
}
//! load data file
bool Load(const std::string &filePath, FactorDirection direction);

View File

@ -65,9 +65,7 @@ public:
size_t GetTableLimit() const {
return m_tableLimit;
}
DecodeType GetDecodeType() const {
return Translate;
}
const PhraseDictionaryFeature* GetFeature() const;
//! find list of translations that can translates src. Only for phrase input

View File

@ -65,9 +65,6 @@ public:
virtual ~PhraseDictionaryTree();
DecodeType GetDecodeType() const {
return Translate;
}
size_t GetSize() const {
return 0;
}