Merge "jni: Remove duplicated jniThrowException()"

This commit is contained in:
Jean-Baptiste Queru
2010-10-19 14:42:52 -07:00
committed by Android Code Review
2 changed files with 2 additions and 18 deletions

View File

@@ -17,7 +17,7 @@
#define LOG_TAG "AndroidUnicode"
#include <jni.h>
#include "JNIHelp.h"
#include <android_runtime/AndroidRuntime.h>
#include "utils/misc.h"
#include "utils/Log.h"
@@ -25,14 +25,6 @@
namespace android {
static void jniThrowException(JNIEnv* env, const char* exc, const char* msg = NULL)
{
jclass excClazz = env->FindClass(exc);
LOG_ASSERT(excClazz, "Unable to find class %s", exc);
env->ThrowNew(excClazz, msg);
}
static jint runBidi(JNIEnv* env, jobject obj, jint dir, jcharArray chsArray,
jbyteArray infoArray, int n, jboolean haveInfo)
{

View File

@@ -17,7 +17,7 @@
#define LOG_TAG "AndroidUnicode"
#include <jni.h>
#include "JNIHelp.h"
#include <android_runtime/AndroidRuntime.h>
#include "utils/misc.h"
#include "utils/Log.h"
@@ -50,14 +50,6 @@ static int directionality_map[U_CHAR_DIRECTION_COUNT] = {
namespace android {
static void jniThrowException(JNIEnv* env, const char* exc, const char* msg = NULL)
{
jclass excClazz = env->FindClass(exc);
LOG_ASSERT(excClazz, "Unable to find class %s", exc);
env->ThrowNew(excClazz, msg);
}
static void getDirectionalities(JNIEnv* env, jobject obj, jcharArray srcArray, jbyteArray destArray, int count)
{
jchar* src = env->GetCharArrayElements(srcArray, NULL);