mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
chore: delete unused function
This commit is contained in:
parent
f6c8c0ff32
commit
954949fbb0
1 changed files with 0 additions and 38 deletions
|
@ -71,44 +71,6 @@ pub const IntWidth = enum(u8) {
|
||||||
Usize,
|
Usize,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn intWidth(width: IntWidth) anytype {
|
|
||||||
switch (width) {
|
|
||||||
IntWidth.U8 => {
|
|
||||||
return u8;
|
|
||||||
},
|
|
||||||
IntWidth.U16 => {
|
|
||||||
return u16;
|
|
||||||
},
|
|
||||||
IntWidth.U32 => {
|
|
||||||
return u32;
|
|
||||||
},
|
|
||||||
IntWidth.U64 => {
|
|
||||||
return u64;
|
|
||||||
},
|
|
||||||
IntWidth.U128 => {
|
|
||||||
return u128;
|
|
||||||
},
|
|
||||||
IntWidth.I8 => {
|
|
||||||
return i8;
|
|
||||||
},
|
|
||||||
IntWidth.I16 => {
|
|
||||||
return i16;
|
|
||||||
},
|
|
||||||
IntWidth.I32 => {
|
|
||||||
return i32;
|
|
||||||
},
|
|
||||||
IntWidth.I64 => {
|
|
||||||
return i64;
|
|
||||||
},
|
|
||||||
IntWidth.I128 => {
|
|
||||||
return i128;
|
|
||||||
},
|
|
||||||
IntWidth.Usize => {
|
|
||||||
return usize;
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn decref(
|
pub fn decref(
|
||||||
bytes_or_null: ?[*]u8,
|
bytes_or_null: ?[*]u8,
|
||||||
data_bytes: usize,
|
data_bytes: usize,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue