diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index dcf61e351950..f6d24a2d059a 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -65,6 +65,7 @@ using ::com::sun::star::lang::Locale; using namespace ::com::sun::star; +#if 0 ////////////////////////////////////////////////////////////////////// String GetDirectoryPathFromFileURL( const String &rFileURL ) @@ -78,14 +79,12 @@ String GetDirectoryPathFromFileURL( const String &rFileURL ) String aRes = aURLObj.GetMainURL( INetURLObject::DECODE_TO_IURI ); return aRes; } - - -rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName ) -{ - (void) rLongPathName; - rtl::OString aRes; +#endif #if defined(WNT) +rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName ) +{ + rtl::OString aRes; sal_Unicode aShortBuffer[1024] = {0}; sal_Int32 nShortBufSize = sizeof( aShortBuffer ) / sizeof( aShortBuffer[0] ); @@ -100,12 +99,10 @@ rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName ) aRes = rtl::OString( OU2ENC( rtl::OUString( aShortBuffer, nShortLen ), osl_getThreadTextEncoding()) ); else DBG_ERROR( "Win_GetShortPathName: buffer to short" ); -#else - DBG_ERROR( "Win_GetShortPathName: functions should nor be called in non-Windows builds" ); -#endif //defined(WNT) return aRes; } +#endif //defined(WNT) ////////////////////////////////////////////////////////////////////// diff --git a/lingucomponent/source/lingutil/lingutil.hxx b/lingucomponent/source/lingutil/lingutil.hxx index c551969a4330..9581a2ffcecf 100644 --- a/lingucomponent/source/lingutil/lingutil.hxx +++ b/lingucomponent/source/lingutil/lingutil.hxx @@ -79,18 +79,21 @@ inline BOOL operator == ( const ::com::sun::star::lang::Locale &rL1, const ::com rL1.Variant == rL2.Variant; } +#if 0 /////////////////////////////////////////////////////////////////////////// String GetDirectoryPathFromFileURL( const String &rFileURL ); +#endif +#if defined(WNT) /////////////////////////////////////////////////////////////////////////// - // to be use to get a short path name under Windows that still can be used with // the 'fopen' call. This is necessary since under Windows there seems to be // a restriction of only about 110-130 characters length to a path name in order // for it to work with 'fopen'. And that length is usually easily exceeded // when using extensions... rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName ); +#endif ///////////////////////////////////////////////////////////////////////////