objective c - Getting rid of redundant #import lines -
in cocoa development, every include header source file can use particular class in it. later delete code source file, , forget (or don't want worry about) deleting corresponding #import.
with time, lot of redundant #import lines pile in source files, throughout codebase.
now, know these lines cause no harm, there easy way rid of them automatically? @ least make top of every file cleaner ;)
nothing comprehensive off shelf comes mind.
1) jetbrains' appcode may help. it's quite young @ time (e.g. not 'beta', publicly distributed), , doesn't understand structures of includes , nontrivial xcode projects , build settings, smart enough handle simpler cases.
2) create scripts accomplish you're after. wouldn't terrible if have project builds out using common build settings. doing manually pain, , not use of time in larger projects if not using high level of automation.
Comments
Post a Comment