[Libreoffice-commits] core.git: reportdesign/source sc/source unusedcode.easy vcl/inc vcl/unx

Caolán McNamara caolanm at redhat.com
Thu Mar 5 01:25:55 PST 2015


 reportdesign/source/core/api/Section.cxx |   19 --------------
 reportdesign/source/core/inc/Section.hxx |    3 --
 sc/source/ui/inc/tabview.hxx             |    1 
 sc/source/ui/view/tabview.cxx            |   42 -------------------------------
 unusedcode.easy                          |    5 ++-
 vcl/inc/unx/salgdi.h                     |    4 --
 vcl/unx/generic/gdi/salgdi2.cxx          |    6 ----
 7 files changed, 4 insertions(+), 76 deletions(-)

New commits:
commit a0183e89b7bb687f6fa09acbb72babdee9cdb6b0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 5 09:15:19 2015 +0000

    callcatcher: update unused code
    
    Change-Id: I81b6f8af2b5c539b7adb507e787497b5ed51fa39

diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx
index 3ce3a2d..4650873 100644
--- a/reportdesign/source/core/api/Section.cxx
+++ b/reportdesign/source/core/api/Section.cxx
@@ -516,25 +516,6 @@ void SAL_CALL OSection::removeVetoableChangeListener( const OUString& PropertyNa
     SectionPropertySet::removeVetoableChangeListener( PropertyName, aListener );
 }
 
-void OSection::lcl_copySection(const uno::Reference< report::XSection>& _xSource,uno::Reference< report::XSection>& _xDest)
-{
-    if ( _xSource.is() )
-    {
-        ::comphelper::copyProperties(_xSource.get(),_xDest.get());
-        sal_Int32 nCount = _xSource->getCount();
-        for(sal_Int32 i = 0;i != nCount;++i)
-        {
-            uno::Reference<util::XCloneable> xClone(_xSource->getByIndex(i),uno::UNO_QUERY);
-            OSL_ENSURE(xClone.is(),"No XCloneable interface found!");
-            if ( xClone.is() )
-            {
-                uno::Reference< drawing::XShape> xShape(xClone->createClone(),uno::UNO_QUERY);
-                _xDest->add(xShape);
-            }
-        }
-    }
-}
-
 void SAL_CALL OSection::add( const uno::Reference< drawing::XShape >& xShape ) throw (uno::RuntimeException, std::exception)
 {
     {
diff --git a/reportdesign/source/core/inc/Section.hxx b/reportdesign/source/core/inc/Section.hxx
index f0a3031..03d06fc 100644
--- a/reportdesign/source/core/inc/Section.hxx
+++ b/reportdesign/source/core/inc/Section.hxx
@@ -228,9 +228,6 @@ namespace reportdesign
         static OSection* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxComponent );
         static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
 
-        static void lcl_copySection(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xSource
-                                         ,::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xDest);
-
         void notifyElementAdded(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape);
         void notifyElementRemoved(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape);
     };
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index 63573ba..8d6010a 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -496,7 +496,6 @@ public:
 
     Point           GetMousePosPixel();
 
-    void            SnapSplitPos( Point& rScreenPosPixel );
     void            FreezeSplitters( bool bFreeze );
     void            RemoveSplit();
     void            SplitAtCursor();
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 1f5f07c..24ab8ec 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1962,48 +1962,6 @@ bool lcl_MouseIsOverWin( const Point& rScreenPosPixel, vcl::Window* pWin )
 
 } // anonymous namespace
 
-void ScTabView::SnapSplitPos( Point& rScreenPosPixel )
-{
-    bool bOverWin = false;
-    sal_uInt16 i;
-    for (i=0; i<4; i++)
-        if (lcl_MouseIsOverWin(rScreenPosPixel,pGridWin[i]))
-            bOverWin = true;
-
-    if (!bOverWin)
-        return;
-
-    //  don't snap to cells if the scale will be modified afterwards
-    if ( GetZoomType() != SVX_ZOOM_PERCENT )
-        return;
-
-    ScSplitPos ePos = SC_SPLIT_BOTTOMLEFT;
-    if ( aViewData.GetVSplitMode() != SC_SPLIT_NONE )
-        ePos = SC_SPLIT_TOPLEFT;
-
-    vcl::Window* pWin = pGridWin[ePos];
-    if (!pWin)
-    {
-        OSL_FAIL("Window NULL");
-        return;
-    }
-
-    Point aMouse = pWin->NormalizedScreenToOutputPixel( rScreenPosPixel );
-    SCsCOL nPosX;
-    SCsROW nPosY;
-    //  bNextIfLarge=FALSE: nicht auf naechste Zelle, wenn ausserhalb des Fensters
-    aViewData.GetPosFromPixel( aMouse.X(), aMouse.Y(), ePos, nPosX, nPosY, true, false, false );
-    bool bLeft;
-    bool bTop;
-    aViewData.GetMouseQuadrant( aMouse, ePos, nPosX, nPosY, bLeft, bTop );
-    if (!bLeft)
-        ++nPosX;
-    if (!bTop)
-        ++nPosY;
-    aMouse = aViewData.GetScrPos( static_cast<SCCOL>(nPosX), static_cast<SCROW>(nPosY), ePos, true );
-    rScreenPosPixel = pWin->OutputToNormalizedScreenPixel( aMouse );
-}
-
 void ScTabView::FreezeSplitters( bool bFreeze )
 {
     ScSplitMode eOldH = aViewData.GetHSplitMode();
diff --git a/unusedcode.easy b/unusedcode.easy
index 68341cb..99f7933 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -19,6 +19,7 @@ Primitive2dXmlDump::filterActionType(unsigned short, bool)
 Primitive2dXmlDump::filterAllActionTypes()
 Printer::Error()
 SalGraphics::drawTransformedBitmap(basegfx::B2DPoint const&, basegfx::B2DPoint const&, basegfx::B2DPoint const&, SalBitmap const&, SalBitmap const*)
+ScBroadcastAreaSlot::AreaBroadcastInRange(ScRange const&, ScHint const&)
 ScCellValue::set(ScRefCellValue const&)
 ScCondFormatManagerDlg::IsInRefMode() const
 ScDocument::CreateFormatTable() const
@@ -54,7 +55,6 @@ Test::testPerf()
 Test::testSharedFormulaMoveBlock()
 ToolBox::UserDraw(UserDrawEvent const&)
 UnxPluginComm::NPP_GetMIMEDescription()
-X11SalGraphics::drawAlphaBitmap(SalTwoRect const&, SalBitmap const&)
 XclXmlUtils::ToOString(XclRange const&)
 XmlTestTools::parseXml(utl::TempFile&)
 apitest::CellProperties::testRotateReference()
@@ -197,6 +197,9 @@ dbaui::OQueryViewSwitch::setReadOnly(bool)
 dbaui::OTableRowView::SetUpdatable(bool)
 dbaui::OTableWindowAccess::isEditable() const
 dp_registry::backend::RegisteredDb::getEntry(rtl::OUString const&)
+frm::ORichTextModel::Create(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
+frm::OScrollBarModel::Create(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
+frm::OSpinButtonModel::Create(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
 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::drawingml::TextListStyle::dump() const
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h
index 40e1cd6..5f04d79 100644
--- a/vcl/inc/unx/salgdi.h
+++ b/vcl/inc/unx/salgdi.h
@@ -250,10 +250,6 @@ public:
                                         const SalBitmap& rSourceBitmap,
                                         const SalBitmap& rAlphaBitmap ) SAL_OVERRIDE;
 
-    bool                            drawAlphaBitmap(
-                                        const SalTwoRect&,
-                                        const SalBitmap& rBitmap );
-
     virtual bool                    drawTransformedBitmap(
                                         const basegfx::B2DPoint& rNull,
                                         const basegfx::B2DPoint& rX,
diff --git a/vcl/unx/generic/gdi/salgdi2.cxx b/vcl/unx/generic/gdi/salgdi2.cxx
index 850b2a8..7b667cb 100644
--- a/vcl/unx/generic/gdi/salgdi2.cxx
+++ b/vcl/unx/generic/gdi/salgdi2.cxx
@@ -193,12 +193,6 @@ bool X11SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
     return mxImpl->drawAlphaBitmap( rTR, rSrcBitmap, rAlphaBmp );
 }
 
-bool X11SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
-                                      const SalBitmap& rBitmap )
-{
-    return mxImpl->drawAlphaBitmap( rTR, rBitmap );
-}
-
 bool X11SalGraphics::drawTransformedBitmap(
     const basegfx::B2DPoint& rNull,
     const basegfx::B2DPoint& rX,


More information about the Libreoffice-commits mailing list