From e193d1c08ca1df9b0685ffe0c79ce268cca642cd Mon Sep 17 00:00:00 2001 From: David Vacca Date: Mon, 19 Dec 2022 01:35:40 -0800 Subject: [PATCH] Delete CppViewMutationsWrapper Summary: Delete CppViewMutationsWrapper as it's not used anymore changelog: [internal] internal Differential Revision: D42018361 fbshipit-source-id: a0c6d4acc7704a37fb6de902e92de461db94775c --- .../react/fabric/CppViewMutationsWrapper.java | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 ReactAndroid/src/main/java/com/facebook/react/fabric/CppViewMutationsWrapper.java diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/CppViewMutationsWrapper.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/CppViewMutationsWrapper.java deleted file mode 100644 index 2df36efac12..00000000000 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/CppViewMutationsWrapper.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package com.facebook.react.fabric; - -import android.annotation.SuppressLint; -import com.facebook.jni.HybridData; -import com.facebook.proguard.annotations.DoNotStrip; - -/** - * This class holds reference to the C++ CppViewMutations object. Instances of this class are - * created on the Bindings.cpp, where the pointer to the cppViewMutations is set. - */ -@SuppressLint("MissingNativeLoadLibrary") -public class CppViewMutationsWrapper { - - static { - FabricSoLoader.staticInit(); - } - - @DoNotStrip private final HybridData mHybridData; - - private static native HybridData initHybrid(); - - private CppViewMutationsWrapper() { - mHybridData = initHybrid(); - } - - public native void runCppViewMutations(); - - public synchronized void destroy() { - if (mHybridData != null) { - mHybridData.resetNative(); - } - } - - private boolean isValid() { - if (mHybridData != null) { - return mHybridData.isValid(); - } - return false; - } -}