Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Tue, 2011-02-15 at 20:45 +0100, Christina Roßmanith wrote:
Hi,

I'm trying to figure out whether DirEntryStack is necessary or not. This 
is what I did already:

1. ./g grep DirEntryStack:  found class implementation in dirent.cxx 
and  "TOOLS_DLLPRIVATE USHORT                ImpTryUrl( DirEntryStack& 
rStack, const String& rPfad, FSysPathStyle eStyle );" in fsys.hxx and 
"@echo DirEntryStack>>$@" in a makefile.

I see DirEntryStack aStack; in DirEntry::ImpParseUnixName in
tools/source/fsys/dirent.cxx which suggests that it might still be in
use. "ImpTryUrl" however seems unused.

2. ./g grep ImpTryUrl: found the line mentioned under 1.

Should I just comment it out, try to build and if this is fine then I know it's 
not used anymore?

Well, its the quickest way to find out if it might be used. Clearly if
it does build without it it might be the case that its used under e.g. a
different platform or different debug level, suggesting it needs to be
ifdefed inside the same guards as its users. In this case I think it
looks used, but quite probably ImpTryUrl isn't and can be removed, which
might mean that various bits of DirEntryStack might also be unused.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.