• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Identifying Dead Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Identifying Dead Code


  • Subject: Re: Identifying Dead Code
  • From: Marshall Clow <email@hidden>
  • Date: Wed, 20 Jun 2012 12:41:55 -0700

On Jun 20, 2012, at 12:13 PM, Gordon Apple wrote:

Is there any simple way to flag all the dead code in a file?  After umpteen revisions and rewrites, cleaning up all the useless remaining code can be tedious.

What do you mean, exactly?

Code in a routine that is no longer reachable?

if ( i > 10 ) { do stuff; }
else if ( i < 15 ) { do other stuff; }
else { stuff that is never executed; }

Routines that are never called?
Code that is commented out?

-- Marshall

Marshall Clow     Idio Software   <mailto:email@hidden>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Identifying Dead Code
      • From: Gordon Apple <email@hidden>
References: 
 >Identifying Dead Code (From: Gordon Apple <email@hidden>)

  • Prev by Date: lldb equivalent of gdb directory command for specifying source search path
  • Next by Date: Re: Identifying Dead Code
  • Previous by thread: Identifying Dead Code
  • Next by thread: Re: Identifying Dead Code
  • Index(es):
    • Date
    • Thread