Skip to content

Commit 71b6810

Browse files
committed
remove unnecessary code
1 parent defa375 commit 71b6810

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

client/src/App.jsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ function App() {
1212
let startY = 0;
1313
const ctx = canvas.getContext("2d");
1414

15-
const canvasHeight = canvas.getBoundingClientRect().height;
16-
const canvasWidht = canvas.getBoundingClientRect().width;
17-
18-
const canvasOffsetX = canvas.getBoundingClientRect().left;
19-
const canvasOffsetY = canvas.getBoundingClientRect().top;
20-
2115
canvas.width = canvas.getBoundingClientRect().width;
2216
canvas.height = canvas.getBoundingClientRect().height;
2317
function drawLine(sx, sy, ex, ey) {

0 commit comments

Comments
 (0)