From 78a5a5a30543b7db7ad58751e14d4fdec91e6a0d Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 8 May 2023 16:52:43 +0800 Subject: [PATCH] refactor(nc-gui): remove unused code --- packages/nc-gui/components/cell/DateTimePicker.vue | 2 +- packages/nc-gui/composables/useMultiSelect/convertCellData.ts | 1 - packages/nc-gui/composables/useMultiSelect/index.ts | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/cell/DateTimePicker.vue b/packages/nc-gui/components/cell/DateTimePicker.vue index 47e000f24f..e3f3d53c74 100644 --- a/packages/nc-gui/components/cell/DateTimePicker.vue +++ b/packages/nc-gui/components/cell/DateTimePicker.vue @@ -25,7 +25,7 @@ const { modelValue, isPk, isUpdatedFromCopyNPaste } = defineProps() const emit = defineEmits(['update:modelValue']) -const { isMssql, isMysql, isSqlite, isXcdbBase } = useProject() +const { isMssql, isMysql, isXcdbBase } = useProject() const { showNull } = useGlobal() diff --git a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts index 5804107d09..1c9ebb0ba0 100644 --- a/packages/nc-gui/composables/useMultiSelect/convertCellData.ts +++ b/packages/nc-gui/composables/useMultiSelect/convertCellData.ts @@ -7,7 +7,6 @@ import { parseProp } from '#imports' export default function convertCellData( args: { from: UITypes; to: UITypes; value: any; column: ColumnType; appInfo: AppInfo }, isMysql = false, - isSqlite = false, isMssql = false, isXcdbBase = false, ) { diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index 09e4903bed..3878f2d729 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -55,7 +55,7 @@ export function useMultiSelect( const { appInfo } = useGlobal() - const { isMssql, isMysql, isSqlite, isXcdbBase } = useProject() + const { isMssql, isMysql, isXcdbBase } = useProject() let clipboardContext = $ref<{ value: any; uidt: UITypes } | null>(null) @@ -336,7 +336,6 @@ export function useMultiSelect( appInfo: unref(appInfo), }, isMysql(meta.value?.base_id), - isSqlite(meta.value?.base_id), isMssql(meta.value?.base_id), isXcdbBase(meta.value?.base_id), ) @@ -373,7 +372,6 @@ export function useMultiSelect( appInfo: unref(appInfo), }, isMysql(meta.value?.base_id), - isSqlite(meta.value?.base_id), isMssql(meta.value?.base_id), isXcdbBase(meta.value?.base_id), )