Skip to content

Commit 6f0e621

Browse files
committed
refactor: Remove unused imports and variables
1 parent 5a49f59 commit 6f0e621

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/components/Equalizers.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect } from 'react';
1+
import { useState } from 'react';
22
import Display from './Display';
33

44
/**

src/hooks/useCanvasDrawing.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const useCanvasDrawing = (canvasRef, { wasmModule, width, height, nodes, xRange,
5858
const endNode = nodes[i + 1];
5959
const shape = curves[i] !== undefined ? curves[i] : 0;
6060

61-
const startPoint = getCanvasPoint(startNode);
6261

6362
const segments = 100;
6463
for (let j = 1; j <= segments; j++) {

src/hooks/useCanvasInteraction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const style = {
66
shapeSpeed: 0.1,
77
};
88

9-
const useCanvasInteraction = (canvasRef, { width, height, nodes, xRange, curves, onNodesChange, onCurvesChange, isLogarithmic }) => {
9+
const useCanvasInteraction = (canvasRef, { width, height, nodes, xRange, onNodesChange, onCurvesChange, isLogarithmic }) => {
1010
const [draggingNodeIndex, setDraggingNodeIndex] = useState(null);
1111
const logXRange = [Math.log(xRange[0]), Math.log(xRange[1])];
1212

0 commit comments

Comments
 (0)