Fast-F1 icon indicating copy to clipboard operation
Fast-F1 copied to clipboard

remove D_LOOKUP table

Open Casper-Guo opened this issue 1 year ago • 3 comments

This hard-coded table is out of date and doesn't seem to be used anywhere.

Casper-Guo avatar Feb 23 '24 15:02 Casper-Guo

Technically this is public API even though it's not in the documentation. I think we could probably skip a proper deprecation here. Do you know if or how this was last used anywhere?

theOehrly avatar Feb 23 '24 17:02 theOehrly

I can find two places in the git history where this table was used.

The table was first added in this commit back in February 2020 for compatibility with 2020 winter tests. The original use case was removed in this commit in July 2020 but a new dependency was added. That dependency was removed here in March 2022. This is the last time I can find D_LOOKUP in any diff.

The second use case is added here in November 2020 to reimplement driver ahead calculation. The usage is fairly trivial. This dependency is removed less than a month later in this commit.

So this table was never used extensively anywhere. And we have not needed it for the last two years.

Casper-Guo avatar Feb 23 '24 18:02 Casper-Guo

Ran pylint to find if we have other unused variables like that but seems like we are pretty good about that issue. I just looked over the output and fixed a few minor things.

Casper-Guo avatar Feb 23 '24 18:02 Casper-Guo

OK, thanks for the investigation. Given that it was only ever used internally, never documented and is long out of date and therefore basically useless, I'll say it's fine to skip a proper deprecation here.

theOehrly avatar Mar 05 '24 17:03 theOehrly