aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/unigram_dictionary.h
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-07-22 18:09:48 +0900
committerJean Chalard <jchalard@google.com>2011-07-22 18:09:48 +0900
commit999ba61b34421d13d691950d27d8ad04eb6fea1e (patch)
tree2731fd73629f9e71a10760061e41eb1dc0945f82 /native/src/unigram_dictionary.h
parent6988d09ac2ff2908cb781595b1e598474ab98082 (diff)
downloadlatinime-999ba61b34421d13d691950d27d8ad04eb6fea1e.tar.gz
latinime-999ba61b34421d13d691950d27d8ad04eb6fea1e.tar.xz
latinime-999ba61b34421d13d691950d27d8ad04eb6fea1e.zip
Some native cleanup
Take a function that does not need to be a member and make it static inline. Also replace the return value of -1 by a #define'd constant. Change-Id: I92e0deaa1df65998b76aba6329a4c8eb4d287485
Diffstat (limited to 'native/src/unigram_dictionary.h')
-rw-r--r--native/src/unigram_dictionary.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/native/src/unigram_dictionary.h b/native/src/unigram_dictionary.h
index f6045c6ef..55771eeb8 100644
--- a/native/src/unigram_dictionary.h
+++ b/native/src/unigram_dictionary.h
@@ -135,7 +135,6 @@ private:
const int startInputIndex, const int depth, unsigned short *word,
int *newChildPosition, int *newCount, bool *newTerminal, int *newFreq, int *siblingPos);
#else // NEW_DICTIONARY_FORMAT
- int getFrequency(const uint16_t* const inWord, const int length) const;
int getMostFrequentWordLikeInner(const uint16_t* const inWord, const int length,
short unsigned int* outWord);
#endif // NEW_DICTIONARY_FORMAT