From 4807969611ea413cbbef635371f53cc301233fdd Mon Sep 17 00:00:00 2001 From: Khil Sergey Date: Tue, 10 Jun 2025 07:19:46 +0300 Subject: [PATCH] Remove redundant files --- .../bindings/native/src/generated/bridges.cpp | 84 ------------------- .../src/generated/Es2pandaNativeModule.ts | 49 ----------- 2 files changed, 133 deletions(-) delete mode 100644 ets2panda/bindings/native/src/generated/bridges.cpp delete mode 100644 ets2panda/bindings/src/generated/Es2pandaNativeModule.ts diff --git a/ets2panda/bindings/native/src/generated/bridges.cpp b/ets2panda/bindings/native/src/generated/bridges.cpp deleted file mode 100644 index 5484e3dcef..0000000000 --- a/ets2panda/bindings/native/src/generated/bridges.cpp +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include "public/es2panda_lib.h" - -// NOLINTBEGIN - -// CC-OFFNXT(G.FUN.01-CPP) solid logic -KNativePointer impl_CreateMemberExpression(KNativePointer context, KNativePointer objectArg, KNativePointer property, - KInt kind, KBoolean computed, KBoolean optionalArg) -{ - const auto ctx = reinterpret_cast(context); - const auto objArg = reinterpret_cast(objectArg); - const auto prop = reinterpret_cast(property); - const auto expressionKind = static_cast(kind); - const auto isComputed = static_cast(computed); - const auto optArg = static_cast(optionalArg); - const auto result = GetPublicImpl()->CreateMemberExpression(ctx, objArg, prop, expressionKind, isComputed, optArg); - return result; -} -// CC-OFFNXT(G.FUN.01-CPP) solid logic -TS_INTEROP_6(CreateMemberExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt, KBoolean, - KBoolean) - -// CC-OFFNXT(G.FUN.01-CPP) solid logic -KNativePointer impl_UpdateMemberExpression(KNativePointer context, KNativePointer original, KNativePointer object_arg, - KNativePointer property, KInt kind, KBoolean computed, KBoolean optional_arg) -{ - const auto _context = reinterpret_cast(context); - const auto _original = reinterpret_cast(original); - const auto _object_arg = reinterpret_cast(object_arg); - const auto _property = reinterpret_cast(property); - const auto _kind = static_cast(kind); - const auto _computed = static_cast(computed); - const auto _optional_arg = static_cast(optional_arg); - const auto result = GetPublicImpl()->UpdateMemberExpression(_context, _original, _object_arg, _property, _kind, - _computed, _optional_arg); - return result; -} -// CC-OFFNXT(G.FUN.01-CPP) solid logic -TS_INTEROP_7(UpdateMemberExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, - KInt, KBoolean, KBoolean) - -KNativePointer impl_MemberExpressionObject(KNativePointer context, KNativePointer receiver) -{ - const auto _context = reinterpret_cast(context); - const auto _receiver = reinterpret_cast(receiver); - const auto result = GetPublicImpl()->MemberExpressionObject(_context, _receiver); - return result; -} -TS_INTEROP_2(MemberExpressionObject, KNativePointer, KNativePointer, KNativePointer) - -KNativePointer impl_MemberExpressionProperty(KNativePointer context, KNativePointer receiver) -{ - const auto _context = reinterpret_cast(context); - const auto _receiver = reinterpret_cast(receiver); - const auto result = GetPublicImpl()->MemberExpressionProperty(_context, _receiver); - return result; -} -TS_INTEROP_2(MemberExpressionProperty, KNativePointer, KNativePointer, KNativePointer) - -KInt impl_MemberExpressionKindConst(KNativePointer context, KNativePointer receiver) -{ - const auto _context = reinterpret_cast(context); - const auto _receiver = reinterpret_cast(receiver); - const auto result = GetPublicImpl()->MemberExpressionKindConst(_context, _receiver); - return result; -} -TS_INTEROP_2(MemberExpressionKindConst, KInt, KNativePointer, KNativePointer) - -// NOLINTEND diff --git a/ets2panda/bindings/src/generated/Es2pandaNativeModule.ts b/ets2panda/bindings/src/generated/Es2pandaNativeModule.ts deleted file mode 100644 index 8bd49b74b2..0000000000 --- a/ets2panda/bindings/src/generated/Es2pandaNativeModule.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { KBoolean, KInt, KNativePointer } from '../InteropTypes'; - -export class Es2pandaNativeModule { - _CreateMemberExpression( - context: KNativePointer, - object_arg: KNativePointer, - property: KNativePointer, - kind: KInt, - computed: KBoolean, - optional_arg: KBoolean - ): KNativePointer { - throw new Error('This methods was not overloaded by native module initialization'); - } - _UpdateMemberExpression( - context: KNativePointer, - original: KNativePointer, - object_arg: KNativePointer, - property: KNativePointer, - kind: KInt, - computed: KBoolean, - optional_arg: KBoolean - ): KNativePointer { - throw new Error('This methods was not overloaded by native module initialization'); - } - _MemberExpressionObject(context: KNativePointer, receiver: KNativePointer): KNativePointer { - throw new Error('This methods was not overloaded by native module initialization'); - } - _MemberExpressionProperty(context: KNativePointer, receiver: KNativePointer): KNativePointer { - throw new Error('This methods was not overloaded by native module initialization'); - } - _MemberExpressionKindConst(context: KNativePointer, receiver: KNativePointer): KInt { - throw new Error('This methods was not overloaded by native module initialization'); - } -} -- Gitee