chart2/source/controller/dialogs/DataBrowser.cxx | 10 ------ chart2/source/controller/dialogs/DataBrowser.hxx | 2 - dbaccess/source/ui/control/FieldControls.cxx | 21 -------------- dbaccess/source/ui/inc/FieldControls.hxx | 3 -- sd/inc/stlpool.hxx | 1 sd/source/core/stlpool.cxx | 6 ---- svx/source/accessibility/svxpixelctlaccessiblecontext.cxx | 7 +--- svx/source/inc/svxpixelctlaccessiblecontext.hxx | 2 - unusedcode.easy | 3 -- 9 files changed, 3 insertions(+), 52 deletions(-)
New commits: commit 5c3a6d383e9aa89252f796a6b17adf81f2bb40a1 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Feb 21 08:55:23 2014 +0000 callcatcher: update unused code Change-Id: Ie4df15ab292df51274d983d31ce8e21e0549de81 diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index 01ea4c2..95091b6 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 66a5302..db16008 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 9d9ea9e..e0ef828 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 2503fa7..9b34dd0 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 581e2f2..0ef6ac0 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 387fb8f..8b4571ac 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 b84d9ab..398d383 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 ea3a0da..5601c3e 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 c5f3dc6..d02ca32 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&)
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits