Andre Poenitz wrote: > 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.
Needless to say, it doesn't work on the DEC, but something similar does. Attached is the cruft for the xforms frontend compiled without thesaurus support. This is the 13x frontend. Looks like gui_CreateCitation et al. can go ;-) -- Angus
ControlThesaurus::ControlThesaurus(LyXView&, Dialogs&) ControlThesaurus::getMeanings(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ControlThesaurus::replace(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ControlThesaurus::showEntry(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) FormCB<ControlThesaurus, FormDB<FD_thesaurus> >::controller(void) FormDB<FD_thesaurus>::form(void) const FormThesaurus::FormThesaurus(void) FormThesaurus::build(void) FormThesaurus::input(flobjs_*, long) FormThesaurus::setReplace(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) FormThesaurus::update(void) FormThesaurus::updateMeanings(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) MathBigInset::MathBigInset(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) MathBigInset::clone(void) const MathBigInset::draw(MathPainterInfo&, int, int) const MathBigInset::increase(void) const MathBigInset::metrics(MathMetricsInfo&) const MathBigInset::normalize(NormalStream&) const MathBigInset::size(void) const MathBigInset::write(WriteStream&) const MathInferInset::MathInferInset(void) MathInferInset::clone(void) const MathInferInset::draw(MathPainterInfo&, int, int) const MathInferInset::metrics(MathMetricsInfo&) const MathInferInset::write(WriteStream&) const MathXYArrowInset::MathXYArrowInset(void) MathXYArrowInset::clone(void) const MathXYArrowInset::draw(MathPainterInfo&, int, int) const MathXYArrowInset::metrics(MathMetricsInfo&) const MathXYArrowInset::normalize(NormalStream&) const MathXYArrowInset::sourceCell(void) const MathXYArrowInset::targetCell(void) const MathXYArrowInset::targetMatrix(void) const MathXYArrowInset::write(WriteStream&) const __Nmath_autocorrect_C_5fb7429a::Correction::correct(MathAtom&, char) const __Nmath_autocorrect_C_5fb7429a::Correction::read(std::basic_istream<char, std::char_traits<char> >&) __Nmath_autocorrect_C_5fb7429a::Correction::write(std::basic_ostream<char, std::char_traits<char> >&) const __Nmath_autocorrect_C_5fb7429a::Corrections::correct(MathAtom&, char) const __Nmath_autocorrect_C_5fb7429a::initAutoCorrect(void) __Nmath_autocorrect_C_5fb7429a::operator <<(std::basic_ostream<char, std::char_traits<char> >&, __Nmath_autocorrect_C_5fb7429a::Correction&) __Nmath_autocorrect_C_5fb7429a::operator >>(std::basic_istream<char, std::char_traits<char> >&, __Nmath_autocorrect_C_5fb7429a::Correction&) __Nmath_autocorrect_C_5fb7429a::theCorrections __T_12MathBigInset __T_13FormThesaurus __T_14MathInferInset __T_16ControlThesaurus __T_16MathXYArrowInset __ct__52FormCB__T16ControlThesaurus23FormDB__T12FD_thesaurusXRCQ13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__Tcjb __cxxexsig12FD_thesaurus __cxxexsig12MathBigInset __cxxexsig13FormThesaurus __cxxexsig14MathInferInset __cxxexsig16ControlThesaurus __cxxexsig16MathXYArrowInset __cxxexsig23FormDB<FD_thesaurus> __cxxexsig52FormCB<ControlThesaurus, FormDB<FD_thesaurus> > __init_sti__FormThesaurus_C_ddae8506 __init_sti__math_autocorrect_C_5fb7429a __vtbl_12MathBigInset __vtbl_13FormThesaurus __vtbl_14MathInferInset __vtbl_16ControlThesaurus __vtbl_16MathXYArrowInset __vtbl_23FormDB__T12FD_thesaurus __vtbl_52FormCB__T16ControlThesaurus23FormDB__T12FD_thesaurus build_thesaurus(void*) gui_CreateCitation gui_CreateIndex gui_CreateRef gui_CreateTOC gui_CreateUrl gui_SetUserFreeFont gui_ShowAboutlyx gui_ShowBibitem gui_ShowBibtex gui_ShowCharacter gui_ShowCitation gui_ShowDocument gui_ShowERT gui_ShowError gui_ShowExternal gui_ShowFile gui_ShowFloat gui_ShowForks gui_ShowGraphics gui_ShowInclude gui_ShowIndex gui_ShowLogFile gui_ShowMathPanel gui_ShowMinipage gui_ShowParagraph gui_ShowPreamble gui_ShowPreferences gui_ShowPrint gui_ShowRef gui_ShowSearch gui_ShowSendto gui_ShowSpellchecker gui_ShowTOC gui_ShowTabular gui_ShowTabularCreate gui_ShowTexinfo gui_ShowThesaurus gui_ShowUrl gui_ShowVCLogFile gui_ShowWrap gui_UpdateERT gui_UpdateMinipage gui_UpdateParagraph gui_UpdateTabular math_autocorrect(MathAtom&, char) snprintf std::vector<__Nmath_autocorrect_C_5fb7429a::Correction, std::allocator<__Nmath_autocorrect_C_5fb7429a::Correction> >::_RWinsert_aux(__Nmath_autocorrect_C_5fb7429a::Correction*, const __Nmath_autocorrect_C_5fb7429a::Correction&) vsnprintf
script.sh
Description: application/shellscript