commit 002c8e09725a5a925cfbbe8f927a0d3c445a4adc
parent ce3d7577b37c2c56255e333fa133381100245ddb
Author: Bor Grošelj Simić <bgs@turminal.net>
Date: Mon, 18 Apr 2022 18:04:31 +0200
rt: remove unused code
Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>
Diffstat:
1 file changed, 0 insertions(+), 33 deletions(-)
diff --git a/rt/ensure.ha b/rt/ensure.ha
@@ -34,36 +34,3 @@ export fn unensure(s: *slice, membsz: size) void = {
assert(data != null || s.capacity * membsz == 0);
s.data = data;
};
-
-type base = enum uint {
- BIN = 2,
- OCT = 8,
- DEC = 10,
- HEX = 16,
-};
-
-fn reverse(b: []u8) void = {
- if (len(b) == 0) {
- return;
- };
- for (let s = 0z, e = len(b) - 1; s < e) {
- let x = b[s];
- b[s] = b[e];
- b[e] = x;
- s += 1;
- e -= 1;
- };
-};
-
-fn println(msgs: str...) void = {
- for (let i = 0z; i < len(msgs); i += 1) {
- let msg = msgs[i];
- write(1, *(&msg: **void): *const char, len(msg)): void;
- if (i + 1 < len(msgs)) {
- const sp = " ";
- write(1, *(&sp: **void): *const char, 1): void;
- };
- };
- const linefeed = "\n";
- write(1, *(&linefeed: **void): *const char, 1): void;
-};