mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
Remove unused Phrase::m_arity member variable.
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3600 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
e504b797b2
commit
be8dbd20e9
@ -225,8 +225,6 @@ void Phrase::CreateFromStringNewFormat(FactorDirection direction
|
||||
, const std::string &factorDelimiter
|
||||
, Word &lhs)
|
||||
{
|
||||
m_arity = 0;
|
||||
|
||||
// parse
|
||||
vector<string> annotatedWordVector;
|
||||
Tokenize(annotatedWordVector, phraseString);
|
||||
@ -249,8 +247,6 @@ void Phrase::CreateFromStringNewFormat(FactorDirection direction
|
||||
annotatedWord = annotatedWord.substr(1, nextPos - 2);
|
||||
else
|
||||
annotatedWord = annotatedWord.substr(nextPos + 1, annotatedWord.size() - nextPos - 2);
|
||||
|
||||
m_arity++;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -45,7 +45,6 @@ class Phrase
|
||||
Not really used, but nice to know for debugging purposes
|
||||
*/
|
||||
std::vector<Word> m_words;
|
||||
size_t m_arity;
|
||||
|
||||
public:
|
||||
/** No longer does anything as not using mem pool for Phrase class anymore */
|
||||
@ -198,9 +197,6 @@ public:
|
||||
{
|
||||
return Compare(compare) == 0;
|
||||
}
|
||||
|
||||
size_t GetArity() const
|
||||
{ return m_arity; }
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user