summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-03-27 10:35:50 +0100
committerTom Smeding <tom@tomsmeding.com>2025-03-27 10:35:50 +0100
commit022cc042d95c1a9cad12b62da9e994de28ab4bc5 (patch)
tree861aa1203e2420a71b701cfe4fba5ebb35321a06 /src
parentdfb790ab064746bbfa2e2da5c634ca8038d91e6c (diff)
Compile: remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/Compile.hs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Compile.hs b/src/Compile.hs
index faf5c22..c134824 100644
--- a/src/Compile.hs
+++ b/src/Compile.hs
@@ -1198,11 +1198,6 @@ compileShapeQuery (SS n) var =
[("a", compileShapeQuery n var)
,("b", CEIndex (CELit (var ++ ".buf->sh")) (CELit (show (fromSNat n))))]
-compileShapeSize :: SNat n -> String -> CExpr
-compileShapeSize SZ _ = CELit "1"
-compileShapeSize (SS SZ) var = CELit (var ++ ".b")
-compileShapeSize (SS n) var = CEBinop (compileShapeSize n (var ++ ".a")) "*" (CELit (var ++ ".b"))
-
-- | Takes a variable name for the array, not the buffer.
compileArrShapeSize :: SNat n -> String -> CExpr
compileArrShapeSize SZ _ = CELit "1"