Skip to content

Commit e4e0f95

Browse files
feat: remove unused bindJSIMethods
1 parent aea9c26 commit e4e0f95

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

packages/react-native-executorch/src/modules/BaseModule.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,4 @@ export abstract class BaseModule {
102102
this.nativeModule.unload();
103103
}
104104
}
105-
106-
/**
107-
* Bind JSI methods to this instance for worklet compatibility.
108-
*
109-
* This makes native JSI functions accessible from worklet threads,
110-
* which is essential for VisionCamera frame processing.
111-
*
112-
* @internal
113-
*/
114-
protected bindJSIMethods() {
115-
if (this.nativeModule && this.nativeModule.generateFromFrame) {
116-
// Bind the native JSI method directly to this instance
117-
// This makes it worklet-compatible since JSI functions work across threads
118-
this.generateFromFrame = this.nativeModule.generateFromFrame;
119-
}
120-
}
121105
}

packages/react-native-executorch/src/modules/computer_vision/ObjectDetectionModule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export class ObjectDetectionModule extends BaseModule {
2828
onDownloadProgressCallback,
2929
model.modelSource
3030
);
31-
3231
if (!paths?.[0]) {
3332
throw new RnExecutorchError(
3433
RnExecutorchErrorCode.DownloadInterrupted,

0 commit comments

Comments
 (0)