Re: Automatically Remove Unused #import Directives
Re: Automatically Remove Unused #import Directives
- Subject: Re: Automatically Remove Unused #import Directives
- From: Quincey Morris <email@hidden>
- Date: Mon, 27 Oct 2008 23:12:29 -0700
On Oct 27, 2008, at 22:38, Jerry Krinock wrote:
P.S. It seems that a brute-force algorithm exists:
For each .m file in project,
Remove all the #imports,
Compile
Count number of errors/warnings
Repeat with each removed #import:
Restore it
Compile
Count number of errors/warnings
If fewer, leave this #import restored
Else, remove it permanently
}
}
Seems to me an accurate algorithm exists.
Starting at the *last* #import and working towards the start of the
file:
Delete the last untested #import
Compile
Undo if any errors or warnings
_______________________________________________
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