From d3a4f97538a7802ad0be2abfcc1d4bffbc9f16ac Mon Sep 17 00:00:00 2001 From: sergeyteleshev Date: Thu, 30 May 2024 15:26:16 +0200 Subject: [PATCH] CB-5198 removes unused helper --- webapp/packages/core-utils/src/index.ts | 1 - webapp/packages/core-utils/src/renamePathName.ts | 13 ------------- 2 files changed, 14 deletions(-) delete mode 100644 webapp/packages/core-utils/src/renamePathName.ts diff --git a/webapp/packages/core-utils/src/index.ts b/webapp/packages/core-utils/src/index.ts index 82f75cc081..96a2647d57 100644 --- a/webapp/packages/core-utils/src/index.ts +++ b/webapp/packages/core-utils/src/index.ts @@ -79,7 +79,6 @@ export * from './uriToBlob'; export * from './utf8ToBase64'; export * from './createLastPromiseGetter'; export * from './removeMetadataFromDataURL'; -export * from './renamePathName'; export * from './removeLineBreak'; export * from './replaceSubstring'; export * from './formatNumber'; diff --git a/webapp/packages/core-utils/src/renamePathName.ts b/webapp/packages/core-utils/src/renamePathName.ts deleted file mode 100644 index 1d05cd36fc..0000000000 --- a/webapp/packages/core-utils/src/renamePathName.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * CloudBeaver - Cloud Database Manager - * Copyright (C) 2020-2024 DBeaver Corp and others - * - * Licensed under the Apache License, Version 2.0. - * you may not use this file except in compliance with the License. - */ -import { createPath } from './createPath'; -import { getPathParent } from './getPathParent'; - -export function renamePathName(path: string, name: string): string { - return createPath(getPathParent(path), name); -}