Revert "[Service] Add edge orchestration interface" 44/248644/1 submit/tizen/20201202.025403
authorYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 1 Dec 2020 06:24:21 +0000 (22:24 -0800)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 1 Dec 2020 06:24:34 +0000 (22:24 -0800)
This reverts commit d55cc7de0b1ddb97a0eb533558fd51edb382763f.
The edge interface is not ready yet on M85 chromium-efl.

Change-Id: I1dfd008b4e6ebb4594aa7791ee2c5a58e43589a6
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
wrt_app/service/device_api_router.ts

index a7e3563..7cb70cb 100644 (file)
@@ -52,34 +52,9 @@ export class DeviceAPIRouter {
     global.webapis.getPackageId = () => {
       return this.packageId;
     }
-    this.initEdgeWebapis();
     this.initProductWebapis();
   }
 
-  initEdgeWebapis() {
-    if (wrt['edge'] && !global.webapis.edge) {
-      let edge = wrt.edge as NativeWRTjs.EdgeExtension;
-      global.webapis.edge = {
-        orchestrationGetDevicelist: (service_name: string, exec_type: string) => {
-          return edge.orchestrationGetDevicelist(service_name, exec_type);
-        },
-        orchestrationReadCapability: (ip: string) => {
-          return edge.orchestrationReadCapability(ip);
-        },
-        orchestrationRequestService: (app_name: string, self_select: boolean, exec_type: string, exec_parameter: string) => {
-          return edge.orchestrationRequestService(app_name, self_select, exec_type, exec_parameter);
-        },
-        orchestrationRequestServiceOnDevice: (app_name: string, self_select: boolean, exec_type: string, exec_parameter: string, ip: string) => {
-          return edge.orchestrationRequestServiceOnDevice(app_name, self_select, exec_type, exec_parameter, ip);
-        },
-        orchestrationWriteCapability: (json: string) => {
-          return edge.orchestrationWriteCapability(json);
-        },
-      }
-      Object.defineProperty(global.webapis, 'edge', { writable: false, enumerable: true });
-    }
-  }
-
   initProductWebapis() {
     // for TV profile
     if (wrt.tv && !global.webapis.productinfo) {