diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-13 16:16:34 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-13 16:16:34 +0000 |
commit | 0536df54d531e2d5e45dfea52c8377701a6a1fda (patch) | |
tree | 436e4a522cd2def2efd11ec081f362ace1536f13 /oox/source/ole | |
parent | 60397e849731db0dd9492975e134dc0f905b6390 (diff) |
Remove unused code
Diffstat (limited to 'oox/source/ole')
-rw-r--r-- | oox/source/ole/vbahelper.cxx | 14 | ||||
-rw-r--r-- | oox/source/ole/vbaproject.cxx | 10 |
2 files changed, 0 insertions, 24 deletions
diff --git a/oox/source/ole/vbahelper.cxx b/oox/source/ole/vbahelper.cxx index e78ec21ff313..a545c578c9e0 100644 --- a/oox/source/ole/vbahelper.cxx +++ b/oox/source/ole/vbahelper.cxx @@ -42,20 +42,6 @@ using ::rtl::OUStringBuffer; // ============================================================================ -/*static*/ OUString VbaHelper::getBasicScriptUrl( - const OUString& rLibraryName, const OUString& rModuleName, const OUString& rMacroName ) -{ - OSL_ENSURE( !rLibraryName.isEmpty(), "VbaHelper::getBasicScriptUrl - library name is empty" ); - OSL_ENSURE( !rModuleName.isEmpty(), "VbaHelper::getBasicScriptUrl - module name is empty" ); - OSL_ENSURE( !rMacroName.isEmpty(), "VbaHelper::getBasicScriptUrl - macro name is empty" ); - const sal_Unicode cDot = '.'; - return OUStringBuffer(). - appendAscii( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.script:" ) ). - append( rLibraryName ).append( cDot ).append( rModuleName ).append( cDot ).append( rMacroName ). - appendAscii( RTL_CONSTASCII_STRINGPARAM( "?language=Basic&location=document" ) ). - makeStringAndClear(); -} - /*static*/ bool VbaHelper::readDirRecord( sal_uInt16& rnRecId, StreamDataSequence& rRecData, BinaryInputStream& rInStrm ) { // read the record header diff --git a/oox/source/ole/vbaproject.cxx b/oox/source/ole/vbaproject.cxx index 4237d2a21cca..19defae81a9a 100644 --- a/oox/source/ole/vbaproject.cxx +++ b/oox/source/ole/vbaproject.cxx @@ -212,21 +212,11 @@ bool VbaProject::hasModules() const return mxBasicLib.is() && mxBasicLib->hasElements(); } -bool VbaProject::hasModule( const OUString& rModuleName ) const -{ - return mxBasicLib.is() && mxBasicLib->hasByName( rModuleName ); -} - bool VbaProject::hasDialogs() const { return mxDialogLib.is() && mxDialogLib->hasElements(); } -bool VbaProject::hasDialog( const OUString& rDialogName ) const -{ - return mxDialogLib.is() && mxDialogLib->hasByName( rDialogName ); -} - // protected ------------------------------------------------------------------ void VbaProject::addDummyModule( const OUString& rName, sal_Int32 nType ) |