Skip to content

Commit b9b181b

Browse files
committed
clean up unused methods
1 parent 5e64006 commit b9b181b

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

external/libc.mojo

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,6 @@ alias GRND_NONBLOCK: UInt8 = 1
1313

1414
alias char_pointer = AnyPointer[c_char]
1515

16-
17-
# @value
18-
# struct Str:
19-
# var vector: List[c_char]
20-
21-
# fn __init__(inout self, string: String):
22-
# self.vector = List[c_char](capacity=len(string) + 1)
23-
# for i in range(len(string)):
24-
# self.vector.push_back(ord(string[i]))
25-
# self.vector.push_back(0)
26-
27-
# fn __init__(inout self, size: Int):
28-
# self.vector = List[c_char]()
29-
# self.vector.resize(size + 1, 0)
30-
31-
# fn __len__(self) -> Int:
32-
# for i in range(len(self.vector)):
33-
# if self.vector[i] == 0:
34-
# return i
35-
# return -1
36-
37-
# fn to_string(self, size: Int) -> String:
38-
# var result: String = ""
39-
# for i in range(size):
40-
# result += chr(int(self.vector[i]))
41-
# return result
42-
43-
# fn __enter__(owned self: Self) -> Self:
44-
# return self ^
45-
46-
4716
# Adapted from https://github.com/crisadamo/mojo-Libc . Huge thanks to Cristian!
4817
# C types
4918
alias c_void = UInt8

0 commit comments

Comments
 (0)