Skip to content
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

Remove unused (debug) code from OTTD #48

Closed
DorpsGek opened this issue Feb 2, 2006 · 1 comment
Closed

Remove unused (debug) code from OTTD #48

DorpsGek opened this issue Feb 2, 2006 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Feb 2, 2006

Rubidium opened the ticket and wrote:

Both ai/default/default.c and viewport.c contain code that is not used since rev. 1.

The ai code makes one tile unconditionally height 1 and unconditionally a single tile of a HQ. Making a single tile of a HQ makes no sense at all, and because the code is # if 0'ed since rev 1 I think it can be removed safely.

The viewport code is also not used since rev. 1. It furthermore does not compile when DEBUG_HILIGHT_MARKED_TILES is defined. It is furthermore inconsequent in using the extra bits -> it writes 4 bits, but only reads 1 back. The non-static functions in de # ifdef are not used anywhere in the code.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/48
@DorpsGek
Copy link
Member Author

Celestar closed the ticket.

Reason for closing: Implemented


This comment was imported from FlySpray: https://bugs.openttd.org/task/48

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant