From 733a023b64a9ec7f2cbdb336b4c2e493ddc0e116 Mon Sep 17 00:00:00 2001 From: Keisuke Kuroyanagi Date: Tue, 26 Aug 2014 16:59:21 +0900 Subject: [PATCH] Remove redundant code. Change-Id: I173eac15dc128e84893881ec4ee0ad1ad2fce44b --- .../jni/src/suggest/core/dictionary/property/word_property.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/native/jni/src/suggest/core/dictionary/property/word_property.cpp b/native/jni/src/suggest/core/dictionary/property/word_property.cpp index 5bdd5606b..66daf3e3f 100644 --- a/native/jni/src/suggest/core/dictionary/property/word_property.cpp +++ b/native/jni/src/suggest/core/dictionary/property/word_property.cpp @@ -65,8 +65,6 @@ void WordProperty::outputProperties(JNIEnv *const env, jintArray outCodePoints, for (const auto &shortcut : mUnigramProperty.getShortcuts()) { const std::vector *const targetCodePoints = shortcut.getTargetCodePoints(); jintArray shortcutTargetCodePointArray = env->NewIntArray(targetCodePoints->size()); - env->SetIntArrayRegion(shortcutTargetCodePointArray, 0 /* start */, - targetCodePoints->size(), targetCodePoints->data()); JniDataUtils::outputCodePoints(env, shortcutTargetCodePointArray, 0 /* start */, targetCodePoints->size(), targetCodePoints->data(), targetCodePoints->size(), false /* needsNullTermination */);