From be8a4cca2b021c5e8d79781f7a5d175f8b3b9976 Mon Sep 17 00:00:00 2001 From: Ariel Bernal Date: Tue, 14 Aug 2012 16:06:07 -0400 Subject: [PATCH] Fixing unused private field error Fixing error resulting from Wunused-private-field. Change-Id: I2bbdefa707a55564eba9b77a88e229921787f357 Author: Ariel Bernal Reviewed-by: Tareq A Siraj --- native/jni/src/proximity_info.cpp | 4 ++-- native/jni/src/proximity_info.h | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/native/jni/src/proximity_info.cpp b/native/jni/src/proximity_info.cpp index 960d40119..855619dd7 100644 --- a/native/jni/src/proximity_info.cpp +++ b/native/jni/src/proximity_info.cpp @@ -42,8 +42,8 @@ ProximityInfo::ProximityInfo(const std::string localeStr, const int maxProximity const int32_t *keyYCoordinates, const int32_t *keyWidths, const int32_t *keyHeights, const int32_t *keyCharCodes, const float *sweetSpotCenterXs, const float *sweetSpotCenterYs, const float *sweetSpotRadii) - : MAX_PROXIMITY_CHARS_SIZE(maxProximityCharsSize), KEYBOARD_WIDTH(keyboardWidth), - KEYBOARD_HEIGHT(keyboardHeight), GRID_WIDTH(gridWidth), GRID_HEIGHT(gridHeight), + : MAX_PROXIMITY_CHARS_SIZE(maxProximityCharsSize), + GRID_WIDTH(gridWidth), GRID_HEIGHT(gridHeight), MOST_COMMON_KEY_WIDTH_SQUARE(mostCommonKeyWidth * mostCommonKeyWidth), CELL_WIDTH((keyboardWidth + gridWidth - 1) / gridWidth), CELL_HEIGHT((keyboardHeight + gridHeight - 1) / gridHeight), diff --git a/native/jni/src/proximity_info.h b/native/jni/src/proximity_info.h index feb0c9444..80d43af9d 100644 --- a/native/jni/src/proximity_info.h +++ b/native/jni/src/proximity_info.h @@ -98,8 +98,6 @@ class ProximityInfo { const int x, const int y, const int32_t primaryKey, int *inputCodes) const; const int MAX_PROXIMITY_CHARS_SIZE; - const int KEYBOARD_WIDTH; - const int KEYBOARD_HEIGHT; const int GRID_WIDTH; const int GRID_HEIGHT; const int MOST_COMMON_KEY_WIDTH_SQUARE; @@ -108,8 +106,6 @@ class ProximityInfo { const int KEY_COUNT; const bool HAS_TOUCH_POSITION_CORRECTION_DATA; const std::string mLocaleStr; - // TODO: remove this - const int *mInputCodesFromJava; int32_t *mInputCodes; const int *mInputXCoordinates; const int *mInputYCoordinates;