Apache OpenOffice (AOO) Bugzilla – Issue 99721
chart2: patch to remove unused code
Last modified: 2013-02-24 21:21:39 UTC
Attached is a patch to remove (or if 0 when the only reference to it is also commented out) the current set of unused code in chart2
Created attachment 60553 [details] unused code in chart2
I will have a look at this after finishing some other patches. Thanks!
@cmc, thanks! I've commited the patch to CWS chart37.
@cmc, please verify in CWS chart37.
All good, but afterwards there are two new unused methods introduced since the original patch. Do you want to handle them now or leave them until later ? i.e. TextSeparatorResources::getBottom is unused (patch to be attached) and the singletop ConfigurationAccess's dtor is uncallable (fixable in two ways, both options to-be attached)
Created attachment 61359 [details] remove getbottom
Created attachment 61360 [details] make singletop a local static instead of a heap allocated object, equally thread unsafe as current, but dtor call be called in theory on dlclose
Created attachment 61361 [details] more attractive solution using rtl::Static
Thanks! I have commited getbottom.patch and dtor2.patch to CWS chart37.
verified, 0 unused methods, neato
http://people.redhat.com/caolanm/callcatcher/DEV300_m50/ shows 0 unused methods in chart2