summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-03 10:47:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-03 10:47:36 +0100
commit4c3f33d8d54756d3988c4d4c848712b31027f919 (patch)
treec4b3f6e3420bc989fcd8a1bf13a9c20738349cd1 /basic
parentc8eede4ee31e5000a782769ec311dc5f68532382 (diff)
callcatcher: remove unused methods
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx79
1 files changed, 0 insertions, 79 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 54c0a87101b4..97970fef4321 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -490,7 +490,6 @@ private:
public:
BasicLibInfo();
- BasicLibInfo( const String& rStorageName );
sal_Bool IsReference() const { return bReference; }
sal_Bool& IsReference() { return bReference; }
@@ -530,7 +529,6 @@ public:
sal_Bool IsFoundInPath() const { return bFoundInPath; }
void SetFoundInPath( sal_Bool bInPath ) { bFoundInPath = bInPath; }
- void Store( SotStorageStream& rSStream, const String& rBasMgrStorageName, sal_Bool bUseOldReloadInfo );
static BasicLibInfo* Create( SotStorageStream& rSStream );
Reference< XLibraryContainer > GetLibraryContainer( void )
@@ -655,83 +653,6 @@ BasicLibInfo::BasicLibInfo()
aRelStorageName = String::CreateFromAscii(szImbedded);
}
-BasicLibInfo::BasicLibInfo( const String& rStorageName )
-{
- bReference = sal_True;
- bPasswordVerified = sal_False;
- bDoLoad = sal_False;
- mxScriptCont = NULL;
- aStorageName = rStorageName;
-}
-
-void BasicLibInfo::Store( SotStorageStream& rSStream, const String& rBasMgrStorageName, sal_Bool bUseOldReloadInfo )
-{
- sal_uIntPtr nStartPos = rSStream.Tell();
- sal_uInt32 nEndPos = 0;
-
- sal_uInt16 nId = LIBINFO_ID;
- sal_uInt16 nVer = CURR_VER;
-
- rSStream << nEndPos;
- rSStream << nId;
- rSStream << nVer;
-
- String aCurStorageName = INetURLObject(rBasMgrStorageName, INET_PROT_FILE).GetMainURL( INetURLObject::NO_DECODE );
- DBG_ASSERT(aCurStorageName.Len() != 0, "Bad storage name");
-
- // If not set initialize StorageName
- if ( aStorageName.Len() == 0 )
- aStorageName = aCurStorageName;
-
- // Load again?
- sal_Bool bDoLoad_ = xLib.Is();
- if ( bUseOldReloadInfo )
- bDoLoad_ = DoLoad();
- rSStream << bDoLoad_;
-
- // The name of the lib...
- rSStream.WriteByteString(GetLibName());
-
- // Absolute path...
- if ( ! GetStorageName().EqualsAscii(szImbedded) )
- {
- String aSName = INetURLObject( GetStorageName(), INET_PROT_FILE).GetMainURL( INetURLObject::NO_DECODE );
- DBG_ASSERT(aSName.Len() != 0, "Bad storage name");
- rSStream.WriteByteString( aSName );
- }
- else
- rSStream.WriteByteString( szImbedded );
-
- // Relative path...
- if ( ( aStorageName == aCurStorageName ) || ( aStorageName.EqualsAscii(szImbedded) ) )
- rSStream.WriteByteString( szImbedded );
- else
- {
- // Do not determine the relative path if the file was only found in path:
- // because the relative path would change and after moving the lib the
- // the file cannot be found.
- if ( !IsFoundInPath() )
- CalcRelStorageName( aCurStorageName );
- rSStream.WriteByteString(aRelStorageName);
- }
-
- // ------------------------------
- // Version 2
- // ------------------------------
-
- // reference...
- rSStream << bReference;
-
- // ------------------------------
- // End
- // ------------------------------
-
- nEndPos = rSStream.Tell();
- rSStream.Seek( nStartPos );
- rSStream << nEndPos;
- rSStream.Seek( nEndPos );
-}
-
BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream )
{
BasicLibInfo* pInfo = new BasicLibInfo;