summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-30 22:25:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-31 10:43:26 +0100
commitd9a749ac97f77d61896c85181dfa4e5d7c1b3782 (patch)
tree5bd5917d66c88c66fbc1ad464903abb334228771 /sfx2
parentdb0a8b380ba47d887ccfc33d2a020fdf659ebf33 (diff)
debug code isn't going to cut it
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/macro.hxx2
-rw-r--r--sfx2/source/control/macro.cxx38
2 files changed, 0 insertions, 40 deletions
diff --git a/sfx2/inc/macro.hxx b/sfx2/inc/macro.hxx
index 50552ece897d..695becf04de6 100644
--- a/sfx2/inc/macro.hxx
+++ b/sfx2/inc/macro.hxx
@@ -171,8 +171,6 @@ public:
void Record( SfxMacroStatement *pStatement );
void Replace( SfxMacroStatement *pStatement );
void Remove();
-
- String GenerateSource() const;
};
#endif
diff --git a/sfx2/source/control/macro.cxx b/sfx2/source/control/macro.cxx
index d3edf45f9408..db6954571e28 100644
--- a/sfx2/source/control/macro.cxx
+++ b/sfx2/source/control/macro.cxx
@@ -390,17 +390,9 @@ SfxMacro::~SfxMacro()
Virtual Destructor of the SfxMacro class. This should be overloaded in
the derived classes to save the recorded source in the mode
SFX_MACRO_RECORDINGABSOLUTE and SFX_MACRO_RECORDINGRELATIVE.
-
- [Cross-reference]
-
- <SfxMacro::GenerateSource()const>
*/
{
-#if OSL_DEBUG_LEVEL > 1
- SvFileStream aStream( String::CreateFromAscii("file:///f:/testmacro.bas" ), STREAM_STD_READWRITE | STREAM_TRUNC );
- aStream << ByteString( GenerateSource(), RTL_TEXTENCODING_UTF8 ).GetBuffer();
-#endif
delete pImp;
}
@@ -525,34 +517,4 @@ void SfxMacro::Remove()
pImp->aList.Remove( pImp->aList.Count() - 1 );
}
-//--------------------------------------------------------------------
-
-String SfxMacro::GenerateSource() const
-
-/* [Description]
-
- This function generates BASIC source code that contains the statements, but
- does not contain the header ('Sub X') and Footer ('End Sub') from recorded
- <SfxMacroStatement> since the construction of the instance until the time
- of calling this method.
-
- [Cross-reference]
-
- <SfxMacro::Record(SfxMacroStatement*)>
- <SfxMacro::Repeat(SfxMacroStatement*)>
-*/
-
-{
- DBG_ASSERT( pImp->eMode != SFX_MACRO_EXISTING, "invalid call to non-recording SfxMacro" );
- String aSource;
- for ( sal_uInt16 n = 0; n < pImp->aList.Count(); ++n )
- {
- aSource += pImp->aList.GetObject(n)->GetStatement();
- if ( (n+1) < pImp->aList.Count() )
- aSource += DEFINE_CONST_UNICODE("\n");
- }
-
- return aSource;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */