ソースを参照

remove unnecessary code

Yuki Takei 2 年 前
コミット
7240fdd53f
1 ファイル変更0 行追加2 行削除
  1. 0 2
      apps/app/src/stores/ui.tsx

+ 0 - 2
apps/app/src/stores/ui.tsx

@@ -96,8 +96,6 @@ export const EditorModeHash = {
 } as const;
 } as const;
 export type EditorModeHash = typeof EditorModeHash[keyof typeof EditorModeHash];
 export type EditorModeHash = typeof EditorModeHash[keyof typeof EditorModeHash];
 
 
-export const isEditorModeHash = (hash: string): hash is EditorModeHash => Object.values<string>(EditorModeHash).includes(hash);
-
 const updateHashByEditorMode = (newEditorMode: EditorMode) => {
 const updateHashByEditorMode = (newEditorMode: EditorMode) => {
   const { pathname, search } = window.location;
   const { pathname, search } = window.location;