You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the ClinchedSegmentEntry class doesn't do much of anything. They're just stored in TravelerList.list_entries, which itself is used only to add the "Processed " + str(len(self.list_entries)) + " good lines marking " +str(len(self.clinched_segments)) + " segments traveled." line to user log files.
Looking back at the siteupdate.py history, it didn't do more than this when first introduced either. (Whether, in the interim, some functionality was added and later removed, I didn't investigate.)
We can replace list_entries with an int used only during TravelerList construction, and write the log file that way. Losing the ClinchedSegmentEntry class will free up a small-moderate amount of RAM, simplify the code, and make things an imperceptibly tiny bit faster.
OK to snip this out?
Or, any good reason to keep it in? Any future functionality?
Activity
jteresco commentedon Apr 8, 2019
I'm not sure if I had anything more elaborate in mind for it when it was introduced, but I agree that it has no useful purpose now and can go.
yakra commentedon Apr 19, 2019
Once this is gone, there will no longer be any need for
canonical_waypointseither.