From 9aa95694cd8bb4057e6cf86ba9190f1d39d11b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rulong=20Chen=EF=BC=88=E9=99=88=E6=B1=9D=E9=BE=99=EF=BC=89?= Date: Wed, 14 Feb 2024 22:18:41 +0800 Subject: [PATCH] [Android] Minor refactor: Remove redundant methods. --- .../io/flutter/view/TextureRegistry.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/shell/platform/android/io/flutter/view/TextureRegistry.java b/shell/platform/android/io/flutter/view/TextureRegistry.java index add6cebaeac9b..2f8e2b32349e6 100644 --- a/shell/platform/android/io/flutter/view/TextureRegistry.java +++ b/shell/platform/android/io/flutter/view/TextureRegistry.java @@ -69,12 +69,6 @@ interface TextureEntry { /** Uses a Surface to populate the texture. */ @Keep interface SurfaceProducer extends TextureEntry { - /** @return The identity of this texture. */ - long id(); - - /** Deregisters and releases all resources . */ - void release(); - /** Specify the size of this texture in physical pixels */ void setSize(int width, int height); @@ -101,12 +95,6 @@ interface SurfaceProducer extends TextureEntry { /** A registry entry for a managed SurfaceTexture. */ @Keep interface SurfaceTextureEntry extends TextureEntry { - /** @return The identity of this texture. */ - long id(); - - /** Deregisters and releases all resources . */ - void release(); - /** @return The managed SurfaceTexture. */ @NonNull SurfaceTexture surfaceTexture(); @@ -120,12 +108,6 @@ default void setOnTrimMemoryListener(@Nullable OnTrimMemoryListener listener) {} @Keep interface ImageTextureEntry extends TextureEntry { - /** @return the identity of this ImageTextureEntry */ - long id(); - - /** Deregisters and releases all resources. */ - void release(); - /** * Next paint will update texture to use the contents of image. *