Skip to content

Commit 20bb516

Browse files
committed
Remove unused state
1 parent 83506a9 commit 20bb516

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/commons/sideContent/content/SideContentCseMachine.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const SideContentCseMachineBase: React.FC<Props> = ({
9393
const [value, setValue] = useState(-1);
9494
const [width, setWidth] = useState(calculateWidth());
9595
const [height, setHeight] = useState(calculateHeight(props.sideContentHeight));
96-
const [, setLastStep] = useState(false);
9796
const [stepLimitExceeded, setStepLimitExceeded] = useState(false);
9897

9998
const isJava = useCallback(() => props.chapter === Chapter.FULL_JAVA, [props.chapter]);
@@ -158,10 +157,9 @@ const SideContentCseMachineBase: React.FC<Props> = ({
158157

159158
const sliderRelease = useCallback(
160159
(newValue: number) => {
161-
setLastStep(newValue === props.stepsTotal);
162160
handleEditorEval();
163161
},
164-
[handleEditorEval, props.stepsTotal]
162+
[handleEditorEval]
165163
);
166164

167165
const sliderShift = useCallback(

0 commit comments

Comments
 (0)