Skip to content

Commit 082d7e0

Browse files
CopilotYu-zh
andcommitted
Fix CI warnings by removing unused output_size_hint functions
Co-authored-by: Yu-zh <[email protected]>
1 parent f10740e commit 082d7e0

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

builtin/output.mbt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ fn UInt64::output(self : UInt64, logger : &Logger, radix? : Int = 10) -> Unit {
7373
}
7474

7575
///|
76+
#cfg(target="js")
7677
fn Int64::output_size_hint(radix? : Int = 10) -> Int {
7778
match radix {
7879
2..<7 => 70 // max length is 64, 70 is enough
@@ -83,21 +84,7 @@ fn Int64::output_size_hint(radix? : Int = 10) -> Int {
8384
}
8485

8586
///|
86-
fn Int::output_size_hint(radix? : Int = 10) -> Int {
87-
match radix {
88-
2..<7 => 36 // max length is 32, 36 is enough
89-
8..<15 => 18 // max length is 12, 18 is enough
90-
16..=36 => 10 // max length is 8, 10 is enough
91-
_ => abort("radix must be between 2 and 36")
92-
}
93-
}
94-
95-
///|
96-
fn UInt::output_size_hint(radix? : Int = 10) -> Int {
97-
Int::output_size_hint(radix~)
98-
}
99-
100-
///|
87+
#cfg(target="js")
10188
fn UInt64::output_size_hint(radix? : Int = 10) -> Int {
10289
Int64::output_size_hint(radix~)
10390
}

0 commit comments

Comments
 (0)