File tree 3 files changed +0
-35
lines changed
components/MarkdownViewer
3 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ export function MarkdownViewer(props: MarkdownViewerProps) {
35
35
} ,
36
36
)
37
37
38
- console . log ( 'MarkdownViewer' , { text } )
39
38
return (
40
39
< MarkdownEditor
41
40
content = { text }
Original file line number Diff line number Diff line change @@ -124,24 +124,17 @@ export default function ProjectsProvider(props: ProjectsProviderProps) {
124
124
)
125
125
126
126
const addLaunchedProject = eventCallbacks . useEventCallback ( ( project : LaunchedProject ) => {
127
- console . trace ( 'addLaunchedProject' , project )
128
127
setLaunchedProjects ( ( current ) => {
129
- console . log ( 'addLaunchedProject' , {
130
- current,
131
- project,
132
- } )
133
128
return [ ...current , project ]
134
129
} )
135
130
} )
136
131
const removeLaunchedProject = eventCallbacks . useEventCallback ( ( projectId : LaunchedProjectId ) => {
137
- console . log ( 'removeLaunchedProject' , projectId )
138
132
setLaunchedProjects ( ( current ) =>
139
133
current . filter ( ( { id, hybrid } ) => id !== projectId && hybrid ?. cloudProjectId !== projectId ) ,
140
134
)
141
135
} )
142
136
const updateLaunchedProjects = eventCallbacks . useEventCallback (
143
137
( update : ( projects : readonly LaunchedProject [ ] ) => readonly LaunchedProject [ ] ) => {
144
- console . log ( 'updateLaunchedProjects' , update )
145
138
setLaunchedProjects ( ( current ) => update ( current ) )
146
139
} ,
147
140
)
Original file line number Diff line number Diff line change @@ -133,33 +133,6 @@ export default class LocalStorage {
133
133
return this . values [ key ]
134
134
}
135
135
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
-
163
136
/** Write an entry to the stored data, and save. */
164
137
set < K extends LocalStorageKey > ( key : K , value : LocalStorageData [ K ] , idToChange ?: string ) {
165
138
this . assertRegisteredKey ( key )
You can’t perform that action at this time.
0 commit comments