From 57f9292800c5b33dee15ce0ab2d0e5bc97f53761 Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Thu, 3 Aug 2023 14:14:25 -0700 Subject: [PATCH] Remove WARNINGs from JNI load path as we can't suppress them --- shell/platform/android/platform_view_android_jni_impl.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/shell/platform/android/platform_view_android_jni_impl.cc b/shell/platform/android/platform_view_android_jni_impl.cc index 9a37889861afc..63363b0aacb84 100644 --- a/shell/platform/android/platform_view_android_jni_impl.cc +++ b/shell/platform/android/platform_view_android_jni_impl.cc @@ -1193,8 +1193,6 @@ bool PlatformViewAndroid::Register(JNIEnv* env) { "()Landroid/hardware/HardwareBuffer;"); if (g_image_get_hardware_buffer_method == nullptr) { - FML_LOG(WARNING) << "Could not locate getHardwareBuffer on " - "android.media.Image"; // Continue on as this method may not exist at API <= 29. fml::jni::ClearException(env); } @@ -1215,14 +1213,10 @@ bool PlatformViewAndroid::Register(JNIEnv* env) { g_hardware_buffer_close_method = env->GetMethodID(g_hardware_buffer_class->obj(), "close", "()V"); if (g_hardware_buffer_close_method == nullptr) { - FML_LOG(WARNING) - << "Could not locate close on android.hardware.HardwareBuffer"; // Continue on as this class may not exist at API <= 26. fml::jni::ClearException(env); } } else { - FML_LOG(WARNING) - << "Could not locate android.hardware.HardwareBuffer class"; // Continue on as this class may not exist at API <= 26. fml::jni::ClearException(env); }