Code reorganization
[vchess.git] / client / client_OLD / javascripts / utils / squareId.js
diff --git a/client/client_OLD/javascripts/utils/squareId.js b/client/client_OLD/javascripts/utils/squareId.js
deleted file mode 100644 (file)
index 8fec48e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// Get the identifier of a HTML square from its numeric coordinates o.x,o.y.
-function getSquareId(o)
-{
-       // NOTE: a separator is required to allow any size of board
-       return  "sq-" + o.x + "-" + o.y;
-}
-
-// Inverse function
-function getSquareFromId(id)
-{
-       const idParts = id.split('-');
-       return [parseInt(idParts[1]), parseInt(idParts[2])];
-}