Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Dead method stripping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dead method stripping



So I understand that, given Objective-C's dynamic nature, it's not possible to accurately identify (at least at compile/link time) methods that are "dead" or otherwise unused. However, I was wondering if there are any tools/techniques/scripts/hacks that might be able to identify methods that at least *appear* to be unused.

The reason I ask is that I'm working with a fairly large codebase that I've been hacking on since 2001. From time to time I'll find methods (usually in categories) that may have been used at one point but have since fallen by the wayside, are no longer used anywhere, and can be removed. It would be great if there were some way to identify these kind of methods without having to resort to my current "accidentally stumble upon old code" method.

Any ideas? Perhaps I'm missing something obvious. Thanks!
Jonathan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.