summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-13 08:04:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-13 10:11:44 +0000
commit90ca7d9e2423afccfaece5f7ffef7fcdd3b5b1e7 (patch)
tree4b2276cb495c416e7395bc6bc325da887eb815ad /basic
parenta796b8ae135861101df9e0af1c0ff40151d8b5c2 (diff)
callcatcher: remove newly unused code
Diffstat (limited to 'basic')
-rw-r--r--basic/inc/basic/sbmod.hxx1
-rw-r--r--basic/source/classes/disas.cxx12
-rw-r--r--basic/source/comp/sbcomp.cxx15
3 files changed, 0 insertions, 28 deletions
diff --git a/basic/inc/basic/sbmod.hxx b/basic/inc/basic/sbmod.hxx
index 346dbf7b8221..443ecdec184b 100644
--- a/basic/inc/basic/sbmod.hxx
+++ b/basic/inc/basic/sbmod.hxx
@@ -118,7 +118,6 @@ public:
void SetSource32( const ::rtl::OUString& r );
virtual sal_Bool Compile();
- sal_Bool Disassemble( String& rText );
virtual sal_Bool IsCompiled() const;
const SbxObject* FindType( String aTypeName ) const;
diff --git a/basic/source/classes/disas.cxx b/basic/source/classes/disas.cxx
index 2f31c59e6488..101ed3d90e87 100644
--- a/basic/source/classes/disas.cxx
+++ b/basic/source/classes/disas.cxx
@@ -233,18 +233,6 @@ static const char* _crlf()
#endif
}
-// This method exists because we want to load the file as own segment
-sal_Bool SbModule::Disassemble( String& rText )
-{
- rText.Erase();
- if( pImage )
- {
- SbiDisas aDisas( this, pImage );
- aDisas.Disas( rText );
- }
- return sal_Bool( rText.Len() != 0 );
-}
-
SbiDisas::SbiDisas( SbModule* p, const SbiImage* q ) : rImg( *q ), pMod( p )
{
memset( cLabels, 0, 8192 );
diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx
index 19d6484f7be6..42871d60146f 100644
--- a/basic/source/comp/sbcomp.cxx
+++ b/basic/source/comp/sbcomp.cxx
@@ -241,21 +241,6 @@ typedef std::hash_map< ::rtl::OUString, PCToTextDataMap*, ::rtl::OUStringHash, :
ModuleTraceMap GaModuleTraceMap;
ModuleTraceMap& rModuleTraceMap = GaModuleTraceMap;
-static void lcl_PrepareTraceForModule( SbModule* pModule )
-{
- String aModuleName = pModule->GetName();
- ModuleTraceMap::iterator it = rModuleTraceMap.find( aModuleName );
- if( it != rModuleTraceMap.end() )
- {
- PCToTextDataMap* pInnerMap = it->second;
- delete pInnerMap;
- rModuleTraceMap.erase( it );
- }
-
- String aDisassemblyStr;
- pModule->Disassemble( aDisassemblyStr );
-}
-
static FILE* GpGlobalFile = NULL;
static void lcl_lineOut( const char* pStr, const char* pPreStr = NULL, const char* pPostStr = NULL )