summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-05-19 17:45:56 +0800
committerPeng Wu <alexepico@gmail.com>2017-05-19 17:45:56 +0800
commit7d2dade8b0f15126c754478339fcc0261d791d10 (patch)
treec8ce7728a24b52353707dfc8232d8b61d044d074 /src
parent0e4c1c80a5e94824efa74d4d59352aa16e0a1a7f (diff)
downloadlibpinyin-7d2dade8b0f15126c754478339fcc0261d791d10.tar.gz
libpinyin-7d2dade8b0f15126c754478339fcc0261d791d10.tar.xz
libpinyin-7d2dade8b0f15126c754478339fcc0261d791d10.zip
drop _compute_zhuyin_start function
Diffstat (limited to 'src')
-rw-r--r--src/zhuyin.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/zhuyin.cpp b/src/zhuyin.cpp
index 9e54ef7..f3b06b0 100644
--- a/src/zhuyin.cpp
+++ b/src/zhuyin.cpp
@@ -1883,23 +1883,6 @@ bool zhuyin_get_n_zhuyin(zhuyin_instance_t * instance,
}
#endif
-/* skip the beginning of zero ChewingKey "'". */
-static size_t _compute_zhuyin_start(PhoneticKeyMatrix & matrix,
- size_t offset) {
- size_t start = offset;
- ChewingKey key; ChewingKeyRest key_rest;
- for (; start < matrix.size() - 1; ++start) {
- size_t size = matrix.get_column_size(start);
- if (1 != size)
- break;
-
- matrix.get_item(start, 0, key, key_rest);
- break;
- }
-
- return start;
-}
-
bool zhuyin_get_zhuyin_key(zhuyin_instance_t * instance,
size_t offset,
ChewingKey ** ppkey) {
@@ -1913,7 +1896,6 @@ bool zhuyin_get_zhuyin_key(zhuyin_instance_t * instance,
return false;
_check_offset(matrix, offset);
- offset = _compute_zhuyin_start(matrix, offset);
static ChewingKey key;
ChewingKeyRest key_rest;
@@ -1936,7 +1918,6 @@ bool zhuyin_get_zhuyin_key_rest(zhuyin_instance_t * instance,
return false;
_check_offset(matrix, offset);
- offset = _compute_zhuyin_start(matrix, offset);
ChewingKey key;
static ChewingKeyRest key_rest;