Skip to content

Commit

Permalink
chore: remove unused callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed May 12, 2021
1 parent ee80068 commit d080401
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Capture } from './Capture';
import { Cutout } from './Cutout';
import Gl, { Shader, Texture } from './gl';
import { Range } from './Range';
import { hexToRgb, rgbToLuma, sortNumeric, useCheckbox, useRange } from './utils';
import { hexToRgb, rgbToLuma, sortNumeric, useCheckbox } from './utils';
const inputCanvas = document.createElement('canvas');
const inputCtx = inputCanvas.getContext('2d') as CanvasRenderingContext2D;
const outputCanvas = document.createElement('canvas');
Expand Down Expand Up @@ -186,10 +186,7 @@ function App() {
}, []);

const onToggleAuto = useCheckbox(setAuto);
const onChangeBrightness = useRange(setBrightness);
const onChangeContrast = useRange(setContrast);
const onToggleThreshold = useCheckbox(setUseThreshold);
const onChangeThreshold = useRange(setThreshold);
const onChangeFill = useCallback((event: JSXInternal.TargetedEvent<HTMLInputElement, Event>) => {
setFill(event.currentTarget.value);
}, []);
Expand Down

0 comments on commit d080401

Please sign in to comment.