am db723ea0: Merge "jni: Remove duplicated jniThrowException()"

Merge commit 'db723ea0f70392f712542edb1114fc15e782cdb7' into gingerbread-plus-aosp

* commit 'db723ea0f70392f712542edb1114fc15e782cdb7':
  jni: Remove duplicated jniThrowException()
This commit is contained in:
Jean-Baptiste Queru
2010-10-19 15:22:13 -07:00
committed by Android Git Automerger
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);