Skip to content

Commit

Permalink
lint(gui): remove console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 14, 2023
1 parent 4dc915d commit c0af709
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions gui/src/components/MaskCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,26 +92,15 @@ export function MaskCanvas(props: MaskCanvasProps) {
}

function saveMask(): void {
// eslint-disable-next-line no-console
console.log('starting canvas save');

if (doesExist(canvasRef.current)) {
if (state.current === MASK_STATE.clean) {
// eslint-disable-next-line no-console
console.log('attempting to save a clean canvas');
return;
}

canvasRef.current.toBlob((blob) => {
// eslint-disable-next-line no-console
console.log('finishing canvas save');

state.current = MASK_STATE.clean;
props.onSave(mustExist(blob));
});
} else {
// eslint-disable-next-line no-console
console.log('canvas no longer exists');
}
}

Expand Down Expand Up @@ -167,8 +156,6 @@ export function MaskCanvas(props: MaskCanvasProps) {
}, [clicks.length]);

useEffect(() => {
// eslint-disable-next-line no-console
console.log('state hook called', state.current);
if (state.current === MASK_STATE.dirty) {
save();
}
Expand Down

0 comments on commit c0af709

Please sign in to comment.