-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernise several uses of GetSortedLanes()
#1490
Conversation
code looks good. |
laneTypeFilter: SpeedLimitManager.LANE_TYPES, | ||
vehicleTypeFilter: SpeedLimitManager.VEHICLE_TYPES, | ||
sort: false).Count; | ||
int count0 = segmentId0.ToSegment().GetSortedLanes( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double ToSegment()
call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure what to do here because we can't store ref in an enumerable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, ok true, I didn't check in the IDE, ignore
Co-authored-by: Krzysztof <krzychu124@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok 👍
Got tired of seeing the
obsolete
warnings on big chunks ofextSegmentManager.GetSortedLanes()
so started porting some over to the newer NetSegment extension.I'm doing these by hand as there seems to be lots of little fringe issues in code where GetSortedLanes() is used - for example, sometimes we don't need the lanes sorting (eg. if we're just counting the number of returned lanes).