remove superseded resize method call handler

remove superseded resize method call handler
This commit is contained in:
Nick Fisher
2023-10-17 18:22:24 +08:00
parent 53b8d352da
commit 3640e27324
3 changed files with 0 additions and 25 deletions

View File

@@ -188,17 +188,6 @@ public class SwiftPolyvoxFilamentPlugin: NSObject, FlutterPlugin, FlutterTexture
self.flutterTextureId = nil
self.pixelBuffer = nil
result(true)
case "resize":
let args = call.arguments as! [Any]
let width = UInt32(args[0] as! Int64)
let height = UInt32(args[1] as! Int64)
if(self.flutterTextureId != nil) {
self.registry.unregisterTexture(self.flutterTextureId!)
}
createPixelBuffer(width: Int(width), height:Int(height))
var pixelBufferTextureId = unsafeBitCast(pixelBuffer!, to: UnsafeRawPointer.self)
print("Resized to \(args[0])x\(args[1])")
result(self.flutterTextureId);
case "dummy":
ios_dummy()
ios_dummy_ffi()