From 082507e1da56c6cefe575ec3d6a334e9b717e3fa Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Mon, 10 Dec 2012 23:36:22 +0900 Subject: [PATCH] Header clean up Change-Id: If9b2ea4ed8c1c4cf73463f0ac4bc63d4bb8cba42 --- native/jni/src/defines.h | 2 -- native/jni/src/dic_traverse_wrapper.h | 2 -- native/jni/src/gesture/gesture_decoder_wrapper.h | 1 - native/jni/src/gesture/incremental_decoder_interface.h | 1 - native/jni/src/gesture/incremental_decoder_wrapper.h | 1 - native/jni/src/proximity_info_state.cpp | 7 +++---- native/jni/src/proximity_info_state.h | 4 +--- 7 files changed, 4 insertions(+), 14 deletions(-) diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h index 631b31f72..a6dd2fd84 100644 --- a/native/jni/src/defines.h +++ b/native/jni/src/defines.h @@ -17,8 +17,6 @@ #ifndef LATINIME_DEFINES_H #define LATINIME_DEFINES_H -#include - #ifdef __GNUC__ #define AK_FORCE_INLINE __attribute__((always_inline)) __inline__ #else // __GNUC__ diff --git a/native/jni/src/dic_traverse_wrapper.h b/native/jni/src/dic_traverse_wrapper.h index 3fe3d5b74..22cf1b1a1 100644 --- a/native/jni/src/dic_traverse_wrapper.h +++ b/native/jni/src/dic_traverse_wrapper.h @@ -17,8 +17,6 @@ #ifndef LATINIME_DIC_TRAVERSE_WRAPPER_H #define LATINIME_DIC_TRAVERSE_WRAPPER_H -#include - #include "defines.h" #include "jni.h" diff --git a/native/jni/src/gesture/gesture_decoder_wrapper.h b/native/jni/src/gesture/gesture_decoder_wrapper.h index 5b056b647..b96814907 100644 --- a/native/jni/src/gesture/gesture_decoder_wrapper.h +++ b/native/jni/src/gesture/gesture_decoder_wrapper.h @@ -17,7 +17,6 @@ #ifndef LATINIME_GESTURE_DECODER_WRAPPER_H #define LATINIME_GESTURE_DECODER_WRAPPER_H -#include #include "defines.h" #include "incremental_decoder_interface.h" diff --git a/native/jni/src/gesture/incremental_decoder_interface.h b/native/jni/src/gesture/incremental_decoder_interface.h index e41513dbc..ff85adc61 100644 --- a/native/jni/src/gesture/incremental_decoder_interface.h +++ b/native/jni/src/gesture/incremental_decoder_interface.h @@ -17,7 +17,6 @@ #ifndef LATINIME_INCREMENTAL_DECODER_INTERFACE_H #define LATINIME_INCREMENTAL_DECODER_INTERFACE_H -#include #include "defines.h" namespace latinime { diff --git a/native/jni/src/gesture/incremental_decoder_wrapper.h b/native/jni/src/gesture/incremental_decoder_wrapper.h index 7d16560ef..c15b439fa 100644 --- a/native/jni/src/gesture/incremental_decoder_wrapper.h +++ b/native/jni/src/gesture/incremental_decoder_wrapper.h @@ -17,7 +17,6 @@ #ifndef LATINIME_INCREMENTAL_DECODER_WRAPPER_H #define LATINIME_INCREMENTAL_DECODER_WRAPPER_H -#include #include "defines.h" #include "incremental_decoder_interface.h" diff --git a/native/jni/src/proximity_info_state.cpp b/native/jni/src/proximity_info_state.cpp index 78791757f..39d53fb52 100644 --- a/native/jni/src/proximity_info_state.cpp +++ b/native/jni/src/proximity_info_state.cpp @@ -16,7 +16,6 @@ #include // for memset() #include // for debug prints -#include #define LOG_TAG "LatinIME: proximity_info_state.cpp" @@ -758,8 +757,8 @@ float ProximityInfoState::calculateSquaredDistanceFromSweetSpotCenter( } // Puts possible characters into filter and returns new filter size. -int32_t ProximityInfoState::getAllPossibleChars( - const size_t index, int32_t *const filter, const int32_t filterSize) const { +int ProximityInfoState::getAllPossibleChars( + const size_t index, int *const filter, const int filterSize) const { if (index >= mSampledInputXs.size()) { return filterSize; } @@ -767,7 +766,7 @@ int32_t ProximityInfoState::getAllPossibleChars( const int keyCount = mProximityInfo->getKeyCount(); for (int j = 0; j < keyCount; ++j) { if (mSearchKeysVector[index].test(j)) { - const int32_t keyCodePoint = mProximityInfo->getCodePointOf(j); + const int keyCodePoint = mProximityInfo->getCodePointOf(j); bool insert = true; // TODO: Avoid linear search for (int k = 0; k < filterSize; ++k) { diff --git a/native/jni/src/proximity_info_state.h b/native/jni/src/proximity_info_state.h index 53a23834e..d3b4062c8 100644 --- a/native/jni/src/proximity_info_state.h +++ b/native/jni/src/proximity_info_state.h @@ -19,7 +19,6 @@ #include #include // for memset() -#include #include #include @@ -164,8 +163,7 @@ class ProximityInfoState { int getSpaceY() const; - int32_t getAllPossibleChars( - const size_t startIndex, int32_t *const filter, const int32_t filterSize) const; + int getAllPossibleChars(const size_t startIndex, int *const filter, const int filterSize) const; float getSpeedRate(const int index) const { return mSpeedRates[index];