]> git.sesse.net Git - remoteglot/commitdiff
Remove leftover, now buggy code.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Dec 2022 20:30:22 +0000 (21:30 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Dec 2022 20:30:22 +0000 (21:30 +0100)
www/js/chessboard-0.3.0.js

index 412df0225ddbaed8035d0ea768633f9c8c71e5c0..da71dc3409a665ec414f122e2353c2a8967666c8 100644 (file)
@@ -1302,10 +1302,6 @@ function touchendWindow(e) {
   // do nothing if we are not dragging a piece
   if (!DRAGGING_A_PIECE) return;
 
-  // get the location
-  var location = isXYOnSquare(e.changedTouches[0].pageX,
-    e.changedTouches[0].pageY);
-
   stopDraggedPiece(findSquareFromEvent(e.changedTouches[0].pageX,
     e.changedTouches[0].pageY));
 }