[CLEANUP] Unused code

This commit is contained in:
2023-12-06 19:16:15 +01:00
parent 95da8147ec
commit fcc6bb39d0
2 changed files with 0 additions and 9 deletions

View File

@@ -11,7 +11,3 @@ num = "0.4"
# For flamegraph, enable this:
[profile.release]
debug = true
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Clink-arg=-Wl,--no-rosegment"]

View File

@@ -23,11 +23,6 @@ impl Day6 {
}
}
fn calc_dist(time: u64, pressed: u64) -> u64 {
if pressed > time { return 0 }
return (time - pressed) * pressed
}
fn calc_ways_to_beat(time: u64, dist: u64) -> u64 {
// y = (t - x) * x = tx - x^2