Skip to content

Commit

Permalink
chore: code review cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
micahg committed Feb 3, 2025
1 parent ee03b57 commit 3dab1aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions packages/mui/src/reducers/ContentReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const ContentReducer = (state = initialState, action: PayloadAction) => {
);
return state;
}
console.log(`MICAH updating current scene ${action.type}`);
return { ...state, currentScene: state.scenes[tableSceneIdx] };
}
case "content/zoom":
Expand All @@ -74,7 +73,6 @@ export const ContentReducer = (state = initialState, action: PayloadAction) => {
case "content/scenes": {
const scenes: Scene[] = action.payload as unknown as Scene[];
if (!state.currentScene) {
console.log(`MICAH updating current scene ${action.type}`);
return { ...state, scenes: scenes, currentScene: scenes[0] };
}
return { ...state, scenes: scenes };
Expand All @@ -90,9 +88,6 @@ export const ContentReducer = (state = initialState, action: PayloadAction) => {
// the current scene is updated we do need to rerender.
if (scene._id !== state.currentScene?._id)
return { ...state, scenes: state.scenes };
// console.log(`MICAH updating current scene ${action.type}`);
// console.log(`MICAH old scene is ${JSON.stringify(state.currentScene)}`);
// console.log(`MICAH new scene is ${JSON.stringify(scene)}`);
return { ...state, currentScene: scene, scenes: state.scenes };
}
case "content/deletescene": {
Expand Down
3 changes: 0 additions & 3 deletions packages/mui/src/utils/contentworker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ function loadAllImages(update: TableUpdate) {
const progress = (p: LoadProgress) =>
postMessage({ cmd: "progress", evt: p });

// load the default token image - no point blocking on this - it should load before we need it
// loadImage("/x.webp", bearer).then((img) => (_default_token = img));

// gross - if we have a background image, only load it if the revision changed...
// so here if we see no change we don't bother pulling the new image
const bgsame =
Expand Down

0 comments on commit 3dab1aa

Please sign in to comment.