Skip to content

Commit 2eb2d6e

Browse files
committed
feat: remove user session methods from DUser.service for code cleanup
1 parent bad29be commit 2eb2d6e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/components/d-user/DUser.service.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ export abstract class DUserReactiveService extends ReactiveArrayService<DUserVie
3737
//TODO: inject UI error handler for toasts
3838
//no id's need to be injected here because the root query has a users field
3939

40-
createUserSession(payload: UserSession): void {
41-
window.localStorage.setItem("ide_code-zero_session", JSON.stringify(payload));
42-
}
43-
44-
getUserSession(): UserSession | undefined {
45-
return JSON.parse(window.localStorage.getItem("ide_code-zero_session")!!) as UserSession
46-
}
47-
4840
getById(id: User['id']): DUserView | undefined {
4941
return this.values().find(user => user.id === id);
5042
}

0 commit comments

Comments
 (0)