On Mon, Aug 11, 2003 at 05:26:36PM +0200, Lars Gullik Bjønnes wrote:
> Michael Schmitt <[EMAIL PROTECTED]> writes:
> 
> | Andre Poenitz wrote:
> >
> >>Do you know of a tool to identify "dead" code? I.e. not accessed by
> >>anything else? [gprof seems to be able to add usage count on a per-line
> >>base, but that's just for the things actually used in the profile
> >>run...]
> >>
> >
> | Andre, I have written a tiny shell script that retrieves all symbols
> | from (a) ./src/lyx and (b) the *.o files in the src directory (excluding
> | src/tex2lyx).
> >
> | Afterwards, it compares the two sets of symbols and outputs a reduced
> | list of abolished symbols.
> >
> | If you like the script, please add it to the cvs repository (whereever
> | you it fits).
> >
> | Attached please also find a sample output (file d-symbols) for the
> | current cvs and the qt frontend.
> 
> There must be a lot of false positives here... especially the
> signatures from libc.

Yes, but it's a good starting point. At least the two indicated mathed
classes are really dead.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to