Browse Source

remove unnecessary atom

Yuki Takei 7 months ago
parent
commit
8f34782af0
1 changed files with 0 additions and 12 deletions
  1. 0 12
      apps/app/src/states/page/internal-atoms.ts

+ 0 - 12
apps/app/src/states/page/internal-atoms.ts

@@ -84,18 +84,6 @@ export const isRevisionOutdatedAtom = atom((get) => {
   return remoteRevisionId !== currentRevisionId;
 });
 
-export const setPageStatusAtom = atom(
-  null,
-  (get, set, status: { isNotFound?: boolean; isLatestRevision?: boolean }) => {
-    if (status.isNotFound !== undefined) {
-      set(pageNotFoundAtom, status.isNotFound);
-    }
-    if (status.isLatestRevision !== undefined) {
-      set(latestRevisionAtom, status.isLatestRevision);
-    }
-  },
-);
-
 // Update atoms for template and remote revision data
 export const setTemplateContentAtom = atom(
   null,