summaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-18 16:53:28 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-18 16:53:28 +0800
commita949650e53700d1215bfe91b3f3172bb59fd2901 (patch)
treeba7ca83d4ae901885ebfd496ec4ec49750554751 /src/storage
parent67eb7b0d41e907d24bc6d1ad973290d61cd90c0a (diff)
downloadlibpinyin-a949650e53700d1215bfe91b3f3172bb59fd2901.tar.gz
libpinyin-a949650e53700d1215bfe91b3f3172bb59fd2901.tar.xz
libpinyin-a949650e53700d1215bfe91b3f3172bb59fd2901.zip
update tag utility
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/tag_utility.cpp4
-rw-r--r--src/storage/tag_utility.h14
2 files changed, 4 insertions, 14 deletions
diff --git a/src/storage/tag_utility.cpp b/src/storage/tag_utility.cpp
index 2701934..081e931 100644
--- a/src/storage/tag_utility.cpp
+++ b/src/storage/tag_utility.cpp
@@ -308,6 +308,8 @@ bool taglib_fini(){
return true;
}
+#if 0
+
static phrase_token_t taglib_special_string_to_token(const char * string){
struct token_pair{
phrase_token_t token;
@@ -355,6 +357,8 @@ phrase_token_t taglib_string_to_token(PhraseLargeTable2 * phrase_table,
return token;
}
+#endif
+
static const char * taglib_special_token_to_string(phrase_token_t token){
struct token_pair{
phrase_token_t token;
diff --git a/src/storage/tag_utility.h b/src/storage/tag_utility.h
index 68e298d..ceb1d6c 100644
--- a/src/storage/tag_utility.h
+++ b/src/storage/tag_utility.h
@@ -116,20 +116,6 @@ class FacadePhraseIndex;
/**
- * taglib_string_to_token:
- * @phrase_table: the phrase table for token lookup.
- * @phrase_index: the phrase index to prepare PhraseTokens.
- * @string: the string of the phrase.
- * @returns: the phrase token found in phrase table.
- *
- * Translate one phrase into the token.
- *
- */
-phrase_token_t taglib_string_to_token(PhraseLargeTable2 * phrase_table,
- FacadePhraseIndex * phrase_index,
- const char * string);
-
-/**
* taglib_token_to_string:
* @phrase_index: the phrase index for phrase string lookup.
* @token: the phrase token.