Skip to content

Commit

Permalink
ci: fix building with latest V (int_max/2 and int_min/2 are now in `b…
Browse files Browse the repository at this point in the history
…uiltin`)
  • Loading branch information
spytheman committed Nov 19, 2024
1 parent 5ff6cbb commit 706f394
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
16 changes: 0 additions & 16 deletions 2020/17/rolfschmidt.v
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,3 @@ fn read_day_string(path string) string {
fn read_day(path string) []string {
return read_day_string(path).split_into_lines()
}

// returns min value of int
fn int_min(a int, b int) int {
if a < b {
return a
}
return b
}

// returns max value of int
fn int_max(a int, b int) int {
if a > b {
return a
}
return b
}
8 changes: 0 additions & 8 deletions 2020/22/rolfschmidt.v
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ fn aint_index(arr []int) []int {
return result
}

// returns max value of int
fn int_max(a int, b int) int {
if a > b {
return a
}
return b
}

// returns sum value of array int
fn aint_sum(arr []int) int {
mut result := 0
Expand Down
16 changes: 0 additions & 16 deletions 2020/23/rolfschmidt.v
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,3 @@ fn read_day_string(path string) string {
mut data := os.read_file(path) or { panic(err) }
return data.trim(' \n\t\v\f\r')
}

// returns min value of int
fn int_min(a int, b int) int {
if a < b {
return a
}
return b
}

// returns max value of int
fn int_max(a int, b int) int {
if a > b {
return a
}
return b
}

0 comments on commit 706f394

Please sign in to comment.