Skip to content

Commit 0d8d847

Browse files
GearsDatapackslpil
authored andcommitted
Remove unused extra_required function
1 parent b649d35 commit 0d8d847

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/gleam/uri.gleam

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -517,14 +517,6 @@ fn pop_codeunit(str: String) -> #(Int, String)
517517
@external(javascript, "../gleam_stdlib.mjs", "string_codeunit_slice")
518518
fn codeunit_slice(str: String, at_index from: Int, length length: Int) -> String
519519

520-
fn extra_required(list: List(a), remaining: Int) -> Int {
521-
case list {
522-
_ if remaining == 0 -> 0
523-
[] -> remaining
524-
[_, ..rest] -> extra_required(rest, remaining - 1)
525-
}
526-
}
527-
528520
/// Parses an urlencoded query string into a list of key value pairs.
529521
/// Returns an error for invalid encoding.
530522
///

0 commit comments

Comments
 (0)