From e644ee7d4e215d4c05f5f95df9182a5bee55e967 Mon Sep 17 00:00:00 2001 From: 1zuna Date: Tue, 12 Mar 2024 06:11:20 +0100 Subject: [PATCH] fixes --- native/CefBrowser_N.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/native/CefBrowser_N.cpp b/native/CefBrowser_N.cpp index ca71dc89..fbc2d6c4 100644 --- a/native/CefBrowser_N.cpp +++ b/native/CefBrowser_N.cpp @@ -1050,21 +1050,6 @@ void executeDevToolsMethod(CefRefPtr host, // } //} -jobject NewJNILongVector(JNIEnv* env, const std::vector& vals) { - ScopedJNIObjectLocal jvector(env, "java/util/Vector"); - if (!jvector) - return nullptr; - - std::vector::const_iterator iter; - for (iter = vals.begin(); iter != vals.end(); ++iter) { - ScopedJNIObjectLocal argument( - env, NewJNIObject(env, "java/lang/Long", "(J)V", (jlong)*iter)); - JNI_CALL_VOID_METHOD(env, jvector, "addElement", "(Ljava/lang/Object;)V", - argument.get()); - } - return jvector.Release(); -} - CefPdfPrintSettings GetJNIPdfPrintSettings(JNIEnv* env, jobject obj) { CefString tmp; CefPdfPrintSettings settings;