Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f971fb0 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

InputChannel (jni): remove unused functions

After the "dispose" flag has been cleaned up, we can now delete this
unused code.

Bug: 323450804
Test: presubmit
Flag: EXEMPT refactor
Change-Id: I2af9c394f04003b465e8e5fec1097986a7cf5fa5
parent aa5af41c
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -23,19 +23,9 @@

namespace android {

typedef void (*InputChannelObjDisposeCallback)(JNIEnv* env, jobject inputChannelObj,
                                               const std::shared_ptr<InputChannel>& inputChannel,
                                               void* data);

extern std::shared_ptr<InputChannel> android_view_InputChannel_getInputChannel(
        JNIEnv* env, jobject inputChannelObj);

/* Sets a callback that is invoked when the InputChannel DVM object is disposed (or finalized).
 * This is used to automatically dispose of other native objects in the input dispatcher
 * and input queue to prevent memory leaks. */
extern void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobject inputChannelObj,
        InputChannelObjDisposeCallback callback, void* data = NULL);

extern jobject android_view_InputChannel_createJavaObject(
        JNIEnv* env, std::unique_ptr<InputChannel> inputChannel);
} // namespace android