From d08040144fee006e5481d54f6030ad30b484776e Mon Sep 17 00:00:00 2001 From: "Sean S. LeBlanc" Date: Wed, 12 May 2021 02:24:16 -0400 Subject: [PATCH] chore: remove unused callbacks --- src/app/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/index.tsx b/src/app/index.tsx index 4d426f8..aa8653d 100644 --- a/src/app/index.tsx +++ b/src/app/index.tsx @@ -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'); @@ -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) => { setFill(event.currentTarget.value); }, []);