diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 08:55:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 09:05:21 +0000 |
commit | 5c3a6d383e9aa89252f796a6b17adf81f2bb40a1 (patch) | |
tree | 38b07246add305cbe6307cd4316c74e3dcea8800 | |
parent | b733190b0eae3177a30e09054a764eed4f616ba2 (diff) |
callcatcher: update unused code
Change-Id: Ie4df15ab292df51274d983d31ce8e21e0549de81
-rw-r--r-- | chart2/source/controller/dialogs/DataBrowser.cxx | 10 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/DataBrowser.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/control/FieldControls.cxx | 21 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/FieldControls.hxx | 3 | ||||
-rw-r--r-- | sd/inc/stlpool.hxx | 1 | ||||
-rw-r--r-- | sd/source/core/stlpool.cxx | 6 | ||||
-rw-r--r-- | svx/source/accessibility/svxpixelctlaccessiblecontext.cxx | 7 | ||||
-rw-r--r-- | svx/source/inc/svxpixelctlaccessiblecontext.hxx | 2 | ||||
-rw-r--r-- | unusedcode.easy | 3 |
9 files changed, 3 insertions, 52 deletions
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index 01ea4c277285..95091b6753ae 100644 --- a/chart2/source/controller/dialogs/DataBrowser.cxx +++ b/chart2/source/controller/dialogs/DataBrowser.cxx @@ -17,9 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -// header for class SvNumberformat #include <svl/zformat.hxx> -// header for SvNumberFormatter #include <svl/zforlist.hxx> #include "DataBrowser.hxx" @@ -1376,14 +1374,6 @@ IMPL_LINK( DataBrowser, SeriesHeaderChanged, impl::SeriesHeaderEdit*, pEdit ) return 0; } -sal_Int32 DataBrowser::GetTotalWidth() const -{ - sal_uLong nWidth = 0; - for ( sal_uInt16 nCol = 0; nCol < ColCount(); ++nCol ) - nWidth += GetColumnWidth( nCol ); - return static_cast< sal_Int32 >( nWidth ); -} - } // namespace chart /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/controller/dialogs/DataBrowser.hxx b/chart2/source/controller/dialogs/DataBrowser.hxx index 66a5302b455e..db160082f152 100644 --- a/chart2/source/controller/dialogs/DataBrowser.hxx +++ b/chart2/source/controller/dialogs/DataBrowser.hxx @@ -136,8 +136,6 @@ public: // calls the protected inline-function BrowseBox::GetFirstVisibleColNumber() sal_Int16 GetFirstVisibleColumNumber() const; - sal_Int32 GetTotalWidth() const; - bool CellContainsNumbers( sal_Int32 nRow, sal_uInt16 nCol ) const; sal_uInt32 GetNumberFormatKey( sal_Int32 nRow, sal_uInt16 nCol ) const; diff --git a/dbaccess/source/ui/control/FieldControls.cxx b/dbaccess/source/ui/control/FieldControls.cxx index 9d9ea9e9f1a7..e0ef82860775 100644 --- a/dbaccess/source/ui/control/FieldControls.cxx +++ b/dbaccess/source/ui/control/FieldControls.cxx @@ -63,13 +63,6 @@ OPropEditCtrl::OPropEditCtrl(Window* pParent, sal_uInt16 nHelpId, short nPositio m_strHelpText = ModuleRes(nHelpId); } -OPropEditCtrl::OPropEditCtrl(Window* pParent, sal_uInt16 nHelpId, const ResId& _rRes,short nPosition) - :Edit(pParent, _rRes) - ,m_nPos(nPosition) -{ - m_strHelpText = ModuleRes(nHelpId); -} - void OPropEditCtrl::SetSpecialReadOnly(sal_Bool _bReadOnly) { @@ -92,26 +85,12 @@ OPropNumericEditCtrl::OPropNumericEditCtrl(Window* pParent, sal_uInt16 nHelpId, m_strHelpText = ModuleRes(nHelpId); } -OPropNumericEditCtrl::OPropNumericEditCtrl(Window* pParent, sal_uInt16 nHelpId, const ResId& _rRes,short nPosition) - :NumericField(pParent, _rRes) - ,m_nPos(nPosition) -{ - m_strHelpText = ModuleRes(nHelpId); -} - OPropListBoxCtrl::OPropListBoxCtrl(Window* pParent, sal_uInt16 nHelpId, short nPosition, WinBits nWinStyle) :ListBox(pParent, nWinStyle) ,m_nPos(nPosition) { m_strHelpText = ModuleRes(nHelpId); } -OPropListBoxCtrl::OPropListBoxCtrl(Window* pParent, sal_uInt16 nHelpId, const ResId& _rRes,short nPosition) - :ListBox(pParent, _rRes) - ,m_nPos(nPosition) -{ - m_strHelpText = ModuleRes(nHelpId); -} - void OPropListBoxCtrl::SetSpecialReadOnly(sal_Bool _bReadOnly) diff --git a/dbaccess/source/ui/inc/FieldControls.hxx b/dbaccess/source/ui/inc/FieldControls.hxx index 2503fa79c969..9b34dd082be3 100644 --- a/dbaccess/source/ui/inc/FieldControls.hxx +++ b/dbaccess/source/ui/inc/FieldControls.hxx @@ -53,7 +53,6 @@ namespace dbaui public: OPropEditCtrl(Window* pParent, sal_uInt16 nHelpId, short nPosition = -1, WinBits nWinStyle = 0); - OPropEditCtrl(Window* pParent, sal_uInt16 nHelpId, const ResId& _rRes,short nPosition = -1); virtual bool IsModified() const SAL_OVERRIDE { return GetText() != GetSavedValue(); } @@ -70,7 +69,6 @@ namespace dbaui public: OPropNumericEditCtrl(Window* pParent, sal_uInt16 nHelpId, short nPosition = -1, WinBits nWinStyle = 0); - OPropNumericEditCtrl(Window* pParent, sal_uInt16 nHelpId, const ResId& _rRes,short nPosition = -1); virtual bool IsModified() const SAL_OVERRIDE { return GetText() != GetSavedValue(); } @@ -88,7 +86,6 @@ namespace dbaui public: OPropListBoxCtrl(Window* pParent, sal_uInt16 nHelpId, short nPosition = -1, WinBits nWinStyle = 0); - OPropListBoxCtrl(Window* pParent, sal_uInt16 nHelpId, const ResId& _rRes,short nPosition = -1); sal_Bool IsModified() const { return GetSelectEntryPos() != GetSavedValue(); } diff --git a/sd/inc/stlpool.hxx b/sd/inc/stlpool.hxx index 581e2f23a00e..0ef6ac02792a 100644 --- a/sd/inc/stlpool.hxx +++ b/sd/inc/stlpool.hxx @@ -123,7 +123,6 @@ public: virtual void SAL_CALL release (void) throw (); protected: void RenameAndCopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, SdStyleSheetVector& rCreatedSheets, OUString &rRenameSuffix); - void RenameAndCopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, OUString &rRenameSuffix); void CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily ); void CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, SdStyleSheetVector& rCreatedSheets ); void CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, SdStyleSheetVector& rCreatedSheets, OUString &rRenameSuffix ); diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 387fb8f2f5a5..8b4571ac8f78 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -607,12 +607,6 @@ void SdStyleSheetPool::RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, RenameAndCopySheets( rSourcePool, SD_STYLE_FAMILY_GRAPHICS, rCreatedSheets, rRenameSuffix ); } -void SdStyleSheetPool::RenameAndCopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, OUString &rRenameSuffix) -{ - SdStyleSheetVector aTmpSheets; - RenameAndCopySheets( rSourcePool, eFamily, aTmpSheets, rRenameSuffix ); -} - void SdStyleSheetPool::CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily ) { SdStyleSheetVector aTmpSheets; diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx index b84d9abe0637..398d3835f659 100644 --- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx +++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx @@ -557,15 +557,12 @@ void SAL_CALL SvxPixelCtlAccessible::disposing() } } + void SvxPixelCtlAccessible::Invalidate() { pPixelCtl = 0; } -void SvxPixelCtlAccessible::ThrowExceptionIfNotAlive( void ) throw( lang::DisposedException ) -{ - if( IsNotAlive() ) - throw lang::DisposedException(); -} + void SvxPixelCtlAccessible::IsValid() throw (uno::RuntimeException) { if(!pPixelCtl) diff --git a/svx/source/inc/svxpixelctlaccessiblecontext.hxx b/svx/source/inc/svxpixelctlaccessiblecontext.hxx index ea3a0da8c815..5601c3ec0684 100644 --- a/svx/source/inc/svxpixelctlaccessiblecontext.hxx +++ b/svx/source/inc/svxpixelctlaccessiblecontext.hxx @@ -249,8 +249,6 @@ public: inline sal_Bool IsAlive( void ) const; /// @returns true if it's not disposed and no in disposing inline sal_Bool IsNotAlive( void ) const; - /// throws the exception DisposedException if it's not alive - void ThrowExceptionIfNotAlive( void ) throw( ::com::sun::star::lang::DisposedException ); protected: /** @attention This method requires locked mutex's and a living object. diff --git a/unusedcode.easy b/unusedcode.easy index c5f3dc691ea5..d02ca32204e4 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -143,7 +143,6 @@ SvxNumRule::Create(SvStream&) SvxNumberFormat::Create(SvStream&) SvxNumberFormatShell::IsAdded_Impl(unsigned long) SvxPixelCtlAccessible::Invalidate() -SvxPixelCtlAccessible::ThrowExceptionIfNotAlive() SvxPixelCtlAccessible::ensureIsValidAddress(int, int) SvxPixelCtlAccessible::ensureIsValidIndex(int) SvxRectCtlAccessibleContext::FireAccessibleEvent(short, com::sun::star::uno::Any const&, com::sun::star::uno::Any const&) @@ -321,7 +320,6 @@ oglcanvas::CanvasHelper::flush() const oglcanvas::TextLayout::draw(com::sun::star::rendering::ViewState const&, com::sun::star::rendering::RenderState const&, com::sun::star::uno::Reference<com::sun::star::rendering::XGraphicDevice> const&) const oox::AttributeConversion::decodeDouble(rtl::OUString const&) oox::core::Decrypt::aes128cbc(std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<unsigned char, std::allocator<unsigned char> >&) -oox::drawingml::Shape::getWps() oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&) oox::xls::FormulaParser::convertBoolToFormula(bool) const oox::xls::WorkbookHelper::getDocShell() @@ -374,3 +372,4 @@ writerfilter::dump(writerfilter::OutputWithDepth<std::basic_string<char, std::ch writerfilter::dump(writerfilter::OutputWithDepth<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, char const*, rtl::OUString const&) writerfilter::dump(writerfilter::OutputWithDepth<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, char const*, unsigned int) writerfilter::resourcemodel::resolveAttributeProperties(writerfilter::Properties&, writerfilter::Value&) +writerfilter::toString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) |