0

Definition of unused imports

Hi there,

AppCode marks headers as unused even though what they import is actually used. However, they are included from somewhere else (but not the related header file) before.

For example, Foo.m contains the imports

#import "Foo.h"

#import "Subclass.h"
#import "Superclass.h"

Lets further assume that Subclass.h imports Superclass.h, and in Foo.m I reference to both classes directly. Therefore, I'd like to keep both imports, but Superclass.h is marked as unused. Can I change the behavior so that only imports are marked as unused of which I do not really use anything?

Thanks,
MikeS

1 comment

Please sign in to leave a comment.