mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 733a023b: Remove redundant code.
* commit '733a023b64a9ec7f2cbdb336b4c2e493ddc0e116': Remove redundant code.
This commit is contained in:
commit
4afcb18f51
@ -65,8 +65,6 @@ void WordProperty::outputProperties(JNIEnv *const env, jintArray outCodePoints,
|
|||||||
for (const auto &shortcut : mUnigramProperty.getShortcuts()) {
|
for (const auto &shortcut : mUnigramProperty.getShortcuts()) {
|
||||||
const std::vector<int> *const targetCodePoints = shortcut.getTargetCodePoints();
|
const std::vector<int> *const targetCodePoints = shortcut.getTargetCodePoints();
|
||||||
jintArray shortcutTargetCodePointArray = env->NewIntArray(targetCodePoints->size());
|
jintArray shortcutTargetCodePointArray = env->NewIntArray(targetCodePoints->size());
|
||||||
env->SetIntArrayRegion(shortcutTargetCodePointArray, 0 /* start */,
|
|
||||||
targetCodePoints->size(), targetCodePoints->data());
|
|
||||||
JniDataUtils::outputCodePoints(env, shortcutTargetCodePointArray, 0 /* start */,
|
JniDataUtils::outputCodePoints(env, shortcutTargetCodePointArray, 0 /* start */,
|
||||||
targetCodePoints->size(), targetCodePoints->data(), targetCodePoints->size(),
|
targetCodePoints->size(), targetCodePoints->data(), targetCodePoints->size(),
|
||||||
false /* needsNullTermination */);
|
false /* needsNullTermination */);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user