Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 541 Bytes

Say you have this Objective-C code:

- (void)notUsed {

- (void)actuallyUsed {

// ...

[self actuallyUsed];

Thanks to /usr/bin/otool, you can get clues about potentially unused methods, like this:

$ python /Users/nst/Desktop/iCalReport 
# the following methods may be unreferenced
-[MyClass notUsed]

The idea was put first by "Luke the Hiesterman" on the Apple Objective-C list.

You can’t perform that action at this time.