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

Unified Diff: libadblockplus-android/jni/JniSubscription.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/JniSubscription.cpp
diff --git a/libadblockplus-android/jni/JniSubscription.cpp b/libadblockplus-android/jni/JniSubscription.cpp
index 4217fb0655e39a121cdcde6ecd1b2484ea7935ab..bab56d37b2860e4e11ae58a047fcb2a4395ec14b 100644
--- a/libadblockplus-android/jni/JniSubscription.cpp
+++ b/libadblockplus-android/jni/JniSubscription.cpp
@@ -24,15 +24,6 @@ static AdblockPlus::Subscription* GetSubscriptionPtr(jlong ptr)
return JniLongToTypePtr<AdblockPlus::SubscriptionPtr>(ptr)->get();
}
-static jlong JNICALL JniCtor(JNIEnv* env, jclass clazz, jlong jsValue)
-{
- try
- {
- return JniPtrToLong(new AdblockPlus::SubscriptionPtr(new AdblockPlus::Subscription(JniGetJsValuePtr(jsValue))));
- }
- CATCH_THROW_AND_RETURN(env, 0)
-}
-
static jboolean JNICALL JniIsListed(JNIEnv* env, jclass clazz, jlong ptr)
{
try
@@ -92,7 +83,6 @@ static jboolean JNICALL JniOperatorEquals(JNIEnv* env, jclass clazz, jlong ptr,
static JNINativeMethod methods[] =
{
- { (char*)"ctor", (char*)"(J)J", (void*)JniCtor },
{ (char*)"isListed", (char*)"(J)Z", (void*)JniIsListed },
{ (char*)"addToList", (char*)"(J)V", (void*)JniAddToList },
{ (char*)"removeFromList", (char*)"(J)V", (void*)JniRemoveFromList },

Powered by Google App Engine
This is Rietveld