Activity Forums Salesforce® Discussions How can I find unused methods and variables?

  • sushant

    Member
    January 23, 2017 at 10:19 am

    Hi Tanu,

    The Tooling API can be used to retrieve the SymbolTable for each apex class. This Symbol Table will tell you the methods that are defined in the apex class, and the references to methods that are consumed in the externalReferences.

    By scanning the methods and corresponding references in each apex classes symbol table you can find methods that aren't called by other apex classes.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos