Remove unsed files
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user