diff options
-rw-r--r-- | WebCore/bridge/jni/v8/JavaClassV8.cpp | 8 | ||||
-rw-r--r-- | WebCore/bridge/jni/v8/JavaClassV8.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/WebCore/bridge/jni/v8/JavaClassV8.cpp b/WebCore/bridge/jni/v8/JavaClassV8.cpp index 04f8822..1d381af 100644 --- a/WebCore/bridge/jni/v8/JavaClassV8.cpp +++ b/WebCore/bridge/jni/v8/JavaClassV8.cpp @@ -26,7 +26,6 @@ #include "config.h" #include "JavaClassV8.h" - using namespace JSC::Bindings; JavaClass::JavaClass(jobject anInstance) @@ -38,11 +37,6 @@ JavaClass::JavaClass(jobject anInstance) return; } - jstring className = static_cast<jstring>(callJNIMethod<jobject>(aClass, "getName", "()Ljava/lang/String;")); - const char* classNameC = getCharactersFromJString(className); - m_name = strdup(classNameC); - releaseCharactersForJString(className, classNameC); - int i; JNIEnv* env = getJNIEnv(); @@ -82,8 +76,6 @@ JavaClass::JavaClass(jobject anInstance) JavaClass::~JavaClass() { - free(const_cast<char*>(m_name)); - deleteAllValues(m_fields); m_fields.clear(); diff --git a/WebCore/bridge/jni/v8/JavaClassV8.h b/WebCore/bridge/jni/v8/JavaClassV8.h index 0c1d627..99137f1 100644 --- a/WebCore/bridge/jni/v8/JavaClassV8.h +++ b/WebCore/bridge/jni/v8/JavaClassV8.h @@ -49,7 +49,6 @@ public: JavaField* fieldNamed(const char* name) const; private: - const char* m_name; MethodListMap m_methods; FieldMap m_fields; }; |