1 Replies Last post: Sep 17, 2013 11:55 AM by Anton Makeev  
Michael Schneider Newbie 7 posts since
May 10, 2013
Currently Being Moderated

Sep 16, 2013 7:16 PM

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

Anton Makeev JetBrains 1,224 posts since
Dec 19, 2006
Currently Being Moderated
Sep 17, 2013 11:56 AM in response to: Michael Schneider
Re: Definition of unused imports

There is no such an option at the moment, here is a feature request: OC-6258, please feel freee to participate in the discussion.

More Like This

  • Retrieving data ...