diff --git a/sc/source/ui/vba/excelvbahelper.cxx b/sc/source/ui/vba/excelvbahelper.cxx index 2da0df5c1a32..cfbb7e79b64b 100644 --- a/sc/source/ui/vba/excelvbahelper.cxx +++ b/sc/source/ui/vba/excelvbahelper.cxx @@ -102,23 +102,6 @@ getUnoSheetModuleObj( const uno::Reference< table::XCellRange >& xRange ) throw return getUnoSheetModuleObj( xSheet ); } -ScDocShell* GetDocShellFromRanges( const uno::Reference< sheet::XSheetCellRangeContainer >& xRanges ) throw ( uno::RuntimeException ) -{ - // need the ScCellRangesBase to get docshell - uno::Reference< uno::XInterface > xIf( xRanges, uno::UNO_QUERY_THROW ); - return GetDocShellFromRange( xIf ); -} - -ScDocument* GetDocumentFromRange( const uno::Reference< uno::XInterface >& xRange ) throw ( uno::RuntimeException ) -{ - ScDocShell* pDocShell = GetDocShellFromRange( xRange ); - if ( !pDocShell ) - { - throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Failed to access underlying document from uno range object" ) ), uno::Reference< uno::XInterface >() ); - } - return pDocShell->GetDocument(); -} - void implSetZoom( const uno::Reference< frame::XModel >& xModel, sal_Int16 nZoom, std::vector< SCTAB >& nTabs ) { ScTabViewShell* pViewSh = excel::getBestViewShell( xModel ); diff --git a/sc/source/ui/vba/excelvbahelper.hxx b/sc/source/ui/vba/excelvbahelper.hxx index 2009cc39a128..955802c8e796 100644 --- a/sc/source/ui/vba/excelvbahelper.hxx +++ b/sc/source/ui/vba/excelvbahelper.hxx @@ -68,8 +68,6 @@ css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const cs css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const css::uno::Reference< css::frame::XModel >& xModel, SCTAB nTab ) throw ( css::uno::RuntimeException ); ScDocShell* GetDocShellFromRange( const css::uno::Reference< css::uno::XInterface >& xRange ) throw ( css::uno::RuntimeException ); -ScDocShell* GetDocShellFromRanges( const css::uno::Reference< css::sheet::XSheetCellRangeContainer >& xRanges ) throw ( css::uno::RuntimeException ); -ScDocument* GetDocumentFromRange( const css::uno::Reference< css::uno::XInterface >& xRange ) throw ( css::uno::RuntimeException ); void setUpDocumentModules( const css::uno::Reference< css::sheet::XSpreadsheetDocument >& xDoc ); // ============================================================================ diff --git a/unusedcode.easy b/unusedcode.easy index 9a307b0badef..71c68b7f0847 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -84,8 +84,6 @@ dbtools::getConnection(rtl::OUString const&, rtl::OUString const&, rtl::OUString formula::FormulaTokenIterator::First() framework::OReadMenuDocumentHandler::getServiceFactory() jfw_plugin::VendorBase::createInstance() -ooo::vba::excel::GetDocShellFromRanges(com::sun::star::uno::Reference const&) -ooo::vba::excel::GetDocumentFromRange(com::sun::star::uno::Reference const&) oox::drawingml::TextListStyle::dump() const oox::ole::AxFormPageModel::AxFormPageModel() oox::ole::AxMultiPageModel::AxMultiPageModel()