Skip to content

Commit 1741075

Browse files
remove console logs
1 parent 6c9302e commit 1741075

File tree

3 files changed

+0
-35
lines changed

3 files changed

+0
-35
lines changed

app/gui/src/dashboard/components/MarkdownViewer/MarkdownViewer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export function MarkdownViewer(props: MarkdownViewerProps) {
3535
},
3636
)
3737

38-
console.log('MarkdownViewer', { text })
3938
return (
4039
<MarkdownEditor
4140
content={text}

app/gui/src/dashboard/providers/ProjectsProvider.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,24 +124,17 @@ export default function ProjectsProvider(props: ProjectsProviderProps) {
124124
)
125125

126126
const addLaunchedProject = eventCallbacks.useEventCallback((project: LaunchedProject) => {
127-
console.trace('addLaunchedProject', project)
128127
setLaunchedProjects((current) => {
129-
console.log('addLaunchedProject', {
130-
current,
131-
project,
132-
})
133128
return [...current, project]
134129
})
135130
})
136131
const removeLaunchedProject = eventCallbacks.useEventCallback((projectId: LaunchedProjectId) => {
137-
console.log('removeLaunchedProject', projectId)
138132
setLaunchedProjects((current) =>
139133
current.filter(({ id, hybrid }) => id !== projectId && hybrid?.cloudProjectId !== projectId),
140134
)
141135
})
142136
const updateLaunchedProjects = eventCallbacks.useEventCallback(
143137
(update: (projects: readonly LaunchedProject[]) => readonly LaunchedProject[]) => {
144-
console.log('updateLaunchedProjects', update)
145138
setLaunchedProjects((current) => update(current))
146139
},
147140
)

app/gui/src/dashboard/utilities/LocalStorage.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -133,33 +133,6 @@ export default class LocalStorage {
133133
return this.values[key]
134134
}
135135

136-
/**
137-
* Lock a key.
138-
* When a key is locked, it will not be updated until it is unlocked.
139-
*/
140-
lock<K extends LocalStorageKey>(key: K, allowedIdToChange: string) {
141-
this.locks.set(key, {
142-
locked: true,
143-
allowedIdToChange,
144-
})
145-
}
146-
147-
/**
148-
* Unlock a key.
149-
*/
150-
unlock<K extends LocalStorageKey>(key: K, allowedIdToChange: string) {
151-
const lock = this.locks.get(key)
152-
if (lock == null) {
153-
return
154-
}
155-
156-
if (lock.allowedIdToChange !== allowedIdToChange) {
157-
return
158-
}
159-
160-
this.locks.delete(key)
161-
}
162-
163136
/** Write an entry to the stored data, and save. */
164137
set<K extends LocalStorageKey>(key: K, value: LocalStorageData[K], idToChange?: string) {
165138
this.assertRegisteredKey(key)

0 commit comments

Comments
 (0)