diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-10 23:00:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-11 11:10:38 +0100 |
commit | 7292948992e088862d86e96ccbf28f9757fded24 (patch) | |
tree | aad255bc7c86c78949c1025a32bb42b1febdf6fb /basic | |
parent | ByteString::ToInt64->rtl::OString::toInt64 (diff) | |
download | core-7292948992e088862d86e96ccbf28f9757fded24.tar.gz core-7292948992e088862d86e96ccbf28f9757fded24.zip |
callcatcher: yet more unused code
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/app/dialogs.cxx | 6 | ||||
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 14 |
2 files changed, 3 insertions, 17 deletions
diff --git a/basic/source/app/dialogs.cxx b/basic/source/app/dialogs.cxx index 1d674836ca8d..2f8255386e51 100644 --- a/basic/source/app/dialogs.cxx +++ b/basic/source/app/dialogs.cxx @@ -747,9 +747,9 @@ void FontOptions::UpdatePreview() void FontOptions::Save( Config &aConfig ) { aConfig.SetGroup("Misc"); - aConfig.WriteKey( "ScriptFontName", aFontName.GetText(), RTL_TEXTENCODING_UTF8 ); - aConfig.WriteKey( "ScriptFontStyle", aFontStyle.GetText(), RTL_TEXTENCODING_UTF8 ); - aConfig.WriteKey( "ScriptFontSize", aFontSize.GetText(), RTL_TEXTENCODING_UTF8 ); + aConfig.WriteKey( "ScriptFontName", ByteString(aFontName.GetText(), RTL_TEXTENCODING_UTF8) ); + aConfig.WriteKey( "ScriptFontStyle", ByteString(aFontStyle.GetText(), RTL_TEXTENCODING_UTF8) ); + aConfig.WriteKey( "ScriptFontSize", ByteString(aFontSize.GetText(), RTL_TEXTENCODING_UTF8) ); } diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index ed040c8d2a14..9fc864a2cc81 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -492,7 +492,6 @@ public: void SetRelStorageName( const String& rN ) { aRelStorageName = rN; } const String& GetRelStorageName() const { return aRelStorageName; } - void CalcRelStorageName( const String& rMgrStorageName ); StarBASICRef GetLib() const { @@ -691,19 +690,6 @@ BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream ) return pInfo; } -void BasicLibInfo::CalcRelStorageName( const String& rMgrStorageName ) -{ - if ( rMgrStorageName.Len() ) - { - INetURLObject aAbsURLObj( rMgrStorageName ); - aAbsURLObj.removeSegment(); - String aPath = aAbsURLObj.GetMainURL( INetURLObject::NO_DECODE ); - UniString aRelURL = INetURLObject::GetRelURL( aPath, GetStorageName() ); - SetRelStorageName( aRelURL ); - } - else - SetRelStorageName( String() ); -} BasicManager::BasicManager( SotStorage& rStorage, const String& rBaseURL, StarBASIC* pParentFromStdLib, String* pLibPath, sal_Bool bDocMgr ) : mbDocMgr( bDocMgr ) { DBG_CTOR( BasicManager, 0 ); |