Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Running "Unused Units" on all units in the project?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
« previous
next »
Print
Pages: [
1
]
Author
Topic: Running "Unused Units" on all units in the project? (Read 871 times)
Eugene Loza
Hero Member
Posts: 729
Running "Unused Units" on all units in the project?
«
on:
November 24, 2023, 02:24:30 pm »
I wonder if there is a way to run "Source -> Refactoring -> Unused Units" tool on all units of the project? Or maybe run it from command line? ("Notes" don't seem to catch all unused units, unfortunately)
It's extremely convenient thing to clean up things that are no longer in use but I have over 200 units in my project and while it's ok to do this once, this will not work for "supporting the project in a clean state" in future.
Oh, I guess I've posted in the wrong board, should be here more likely:
https://forum.lazarus.freepascal.org/index.php/board,9.0.html
«
Last Edit: November 24, 2023, 02:27:57 pm by Eugene Loza
»
Logged
My FOSS games in FreePascal&CastleGameEngine:
https://decoherence.itch.io/
(Sources:
https://gitlab.com/EugeneLoza
)
jamie
Hero Member
Posts: 7903
Re: Running "Unused Units" on all units in the project?
«
Reply #1 on:
November 24, 2023, 09:45:34 pm »
Are these dotted units by any chance that are not being removed?
I've never used that feature, but I would say that it may not get used that much and may have gone unnoticed.
I think would need to be careful with such a feature.
Logged
The only true wisdom is knowing you know nothing
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
Running "Unused Units" on all units in the project?
TinyPortal
© 2005-2018