diff --git a/features/home/src/main/ets/pages/Index.ets b/features/home/src/main/ets/pages/Index.ets deleted file mode 100644 index f9c6348536597ddb64a2d6b0eab9d8966e53fcfb..0000000000000000000000000000000000000000 --- a/features/home/src/main/ets/pages/Index.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2023 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 { CommonConstants, WindowUtil } from '@ohos/commons'; -import { Home } from '../view/Home'; - -@Entry -@Component -struct Index { - aboutToDisappear(): void { - let windowUtil = WindowUtil.getInstance(); - if (windowUtil === undefined) { - return; - } - windowUtil.offWindowSizeChange(); - } - - build() { - Column() { - Home() - } - .width(CommonConstants.FULL_PERCENT) - .height(CommonConstants.FULL_PERCENT) - } -} \ No newline at end of file diff --git a/features/home/src/main/resources/base/profile/main_pages.json b/features/home/src/main/resources/base/profile/main_pages.json deleted file mode 100644 index 1898d94f58d6128ab712be2c68acc7c98e9ab9ce..0000000000000000000000000000000000000000 --- a/features/home/src/main/resources/base/profile/main_pages.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "src": [ - "pages/Index" - ] -}