From c068ff78fcfc0bc5f7779e575c8797482e9fcdb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Jamr=C3=B3z?= Date: Wed, 2 Feb 2022 15:01:43 +0100 Subject: [PATCH] Remove unsed files --- .../core/history/RichHistoryRemoteStorage.ts | 18 ------------------ .../core/history/richHistoryStorageProvider.ts | 5 ----- 2 files changed, 23 deletions(-) delete mode 100644 public/app/core/history/RichHistoryRemoteStorage.ts diff --git a/public/app/core/history/RichHistoryRemoteStorage.ts b/public/app/core/history/RichHistoryRemoteStorage.ts deleted file mode 100644 index c3b8a562b39..00000000000 --- a/public/app/core/history/RichHistoryRemoteStorage.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { RichHistoryQuery } from 'app/types'; -import RichHistoryStorage from './RichHistoryStorage'; - -/** - * Object responsible for storing rich history to remote storage. To be implemented for Rich History migration to backend. - */ -export default class RichHistoryRemoteStorage implements RichHistoryStorage { - async getRichHistory() { - return []; - } - async addToRichHistory(richHistoryQuery: RichHistoryQuery) { - return undefined; - } - async deleteAll() {} - async deleteRichHistory(id: number) {} - async updateComment(id: number, comment: string | undefined) {} - async updateStarred(id: number, starred: boolean) {} -} diff --git a/public/app/core/history/richHistoryStorageProvider.ts b/public/app/core/history/richHistoryStorageProvider.ts index c215d9722f4..fed05c0261d 100644 --- a/public/app/core/history/richHistoryStorageProvider.ts +++ b/public/app/core/history/richHistoryStorageProvider.ts @@ -1,13 +1,8 @@ import RichHistoryLocalStorage from './RichHistoryLocalStorage'; -import RichHistoryRemoteStorage from './RichHistoryRemoteStorage'; import RichHistoryStorage from './RichHistoryStorage'; const richHistoryLocalStorage = new RichHistoryLocalStorage(); -// To be implemented and switched with a feature flag. -// @ts-ignore -const richHistoryRemoteStorage = new RichHistoryRemoteStorage(); - export const getRichHistoryStorage = (): RichHistoryStorage => { return richHistoryLocalStorage; };