Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch committed Nov 5, 2024
1 parent 4eb0edf commit 45f24f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/osr/routing/profiles/bike_sharing.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ struct bike_sharing {
}

struct key {
// friend bool operator==(key, key) = default;

friend bool operator==(key const a, key const b) {
auto const is_zero = [](level_t const l) {
return l == kNoLevel || l == level_t{0.F};
Expand Down Expand Up @@ -305,8 +303,8 @@ struct bike_sharing {
[&](bike::node const neighbor, std::uint32_t const cost,
distance_t const dist, way_idx_t const way,
std::uint16_t const from, std::uint16_t const to) {
fn(to_node(neighbor, kNoLevel /*n.lvl_*/), cost + switch_penalty,
dist, way, from, to);
fn(to_node(neighbor, kNoLevel), cost + switch_penalty, dist, way,
from, to);
});
if (include_additional_edges) {
// drive to station
Expand Down

0 comments on commit 45f24f5

Please sign in to comment.