[CLEANUP] Unused code
This commit is contained in:
@@ -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"]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user