From d965e034f2f8c1fef35613e02671acba7e30bcee Mon Sep 17 00:00:00 2001 From: mali Date: Mon, 25 Jul 2022 19:40:44 +0800 Subject: [PATCH] delete setFocusPoint Signed-off-by: mali --- .../systemplugin/napi/ohos_multimedia_camera.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/ohos_multimedia_camera.js b/runtime/main/extend/systemplugin/napi/ohos_multimedia_camera.js index 4810c689..1c906517 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_multimedia_camera.js +++ b/runtime/main/extend/systemplugin/napi/ohos_multimedia_camera.js @@ -271,18 +271,6 @@ export function mockMultimediaCamera() { }); } }, - setFocusPoint: function (...args) { - console.warn('CameraInput.setFocusPoint interface mocked in the Previewer. How this interface works on the' + - ' Previewer may be different from that on a real device.'); - const len = args.length; - if (typeof args[len - 1] === 'function') { - args[len - 1].call(this, paramMock.businessErrorMock); - } else { - return new Promise((resolve) => { - resolve(); - }); - } - }, getZoomRatioRange: function (...args) { console.warn('CameraInput.getZoomRatioRange interface mocked in the Previewer. How this interface works on the' + ' Previewer may be different from that on a real device.');