Re: Automatically Remove Unused #import Directives
Re: Automatically Remove Unused #import Directives
- Subject: Re: Automatically Remove Unused #import Directives
- From: Jerry Krinock <email@hidden>
- Date: Thu, 30 Oct 2008 08:37:26 -0700
On 2008 Oct, 28, at 10:23, George Warner wrote:
On Mon, 27 Oct 2008 22:38:07 -0700, Jerry Krinock <email@hidden>
wrote:
After major remodeling of a project, I'm going to have about a
hundred
files with an average of maybe 20 #import directives at the top of
each one, and half of them will be no longer necessary since the
symbols that required them were removed or moved to other files
during
remodeling.
You could move all the "#import"'s into a precompiler header (.pch)
file;
then sort and remove dups.
Thanks, George. I did some reading on .pch files. My conclusion is
that, while it would completely eliminate the clutter and make my code
^look^ stunningly beautiful, I'd pay a big penalty in compiler time
whenever I added or changed a .h file, which I typically do several
times per hour.
I like my "minimalist" approach better, but it looks like I either
have to do it manually or write my own script. We'll see...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden