diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pinyin.cpp | 18 | ||||
-rw-r--r-- | src/pinyin.h | 14 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index b0d9d23..0831529 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -1508,24 +1508,6 @@ bool pinyin_get_full_pinyin_candidates(pinyin_instance_t * instance, } -int pinyin_choose_candidate(pinyin_instance_t * instance, - size_t offset, - lookup_candidate_t * candidate){ - pinyin_context_t * & context = instance->m_context; - - assert(NORMAL_CANDIDATE == candidate->m_candidate_type); - - phrase_token_t token = candidate->m_token; - - guint8 len = context->m_pinyin_lookup->add_constraint - (instance->m_constraints, offset, token); - - bool retval = context->m_pinyin_lookup->validate_constraint - (instance->m_constraints, instance->m_pinyin_keys) && len; - - return offset + len; -} - int pinyin_choose_full_pinyin_candidate(pinyin_instance_t * instance, size_t offset, lookup_candidate_t * candidate){ diff --git a/src/pinyin.h b/src/pinyin.h index c9c7bf7..f30d1a9 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -391,20 +391,6 @@ bool pinyin_get_full_pinyin_candidates(pinyin_instance_t * instance, CandidateVector candidates); /** - * pinyin_choose_candidate: - * @instance: the pinyin instance. - * @offset: the offset in the pinyin keys. - * @candidate: the selected candidate. - * @returns: the cursor after the chosen candidate. - * - * Choose an candidate at the offset. - * - */ -int pinyin_choose_candidate(pinyin_instance_t * instance, - size_t offset, - lookup_candidate_t * candidate); - -/** * pinyin_choose_full_pinyin_candidate: * @instance: the pinyin instance. * @offset: the offset in the pinyin keys. |