Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/JniFilter.cpp

Issue 29347012: Issue 4188 - Update libadblockplus-android to use the latest libadblockplus (Closed)
Patch Set: removed ctors with JsValue argument Created Dec. 12, 2016, 2:22 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/jni/JniFilter.cpp
diff --git a/libadblockplus-android/jni/JniFilter.cpp b/libadblockplus-android/jni/JniFilter.cpp
index b3daec386640c00d0805d850f60cbbf2a40c6ce5..1db7fc2c8fa009767e62bc7b92c91d3c25e423d0 100644
--- a/libadblockplus-android/jni/JniFilter.cpp
+++ b/libadblockplus-android/jni/JniFilter.cpp
@@ -24,15 +24,6 @@ static AdblockPlus::Filter* GetFilterPtr(jlong ptr)
return JniLongToTypePtr<AdblockPlus::FilterPtr>(ptr)->get();
}
-static jlong JNICALL JniCtor(JNIEnv* env, jclass clazz, jlong jsValue)
-{
- try
- {
- return JniPtrToLong(new AdblockPlus::FilterPtr(new AdblockPlus::Filter(JniGetJsValuePtr(jsValue))));
- }
- CATCH_THROW_AND_RETURN(env, 0)
-}
-
static jobject JNICALL JniGetType(JNIEnv* env, jclass clazz, jlong ptr)
{
AdblockPlus::Filter::Type type;
@@ -113,7 +104,6 @@ static jboolean JNICALL JniOperatorEquals(JNIEnv* env, jclass clazz, jlong ptr,
static JNINativeMethod methods[] =
{
- { (char*)"ctor", (char*)"(J)J", (void*)JniCtor },
{ (char*)"getType", (char*)"(J)" TYP("Filter$Type"), (void*)JniGetType },
{ (char*)"isListed", (char*)"(J)Z", (void*)JniIsListed },
{ (char*)"addToList", (char*)"(J)V", (void*)JniAddToList },

Powered by Google App Engine
This is Rietveld