[Libreoffice-commits] .: binfilter/bf_sc binfilter/inc

Caolán McNamara caolan at kemper.freedesktop.org
Fri Sep 30 01:10:35 PDT 2011


 binfilter/bf_sc/source/core/data/sc_documen9.cxx |   29 -----------------------
 binfilter/inc/bf_sc/document.hxx                 |    2 -
 binfilter/inc/bf_svtools/bf_postwin.h            |    3 ++
 binfilter/inc/bf_svtools/bf_solar.h              |    3 ++
 4 files changed, 6 insertions(+), 31 deletions(-)

New commits:
commit 0c03414aa6fa4eb691b280679af9f92a18dc43ac
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 30 09:01:18 2011 +0100

    callgrind: remove newly unused code

diff --git a/binfilter/bf_sc/source/core/data/sc_documen9.cxx b/binfilter/bf_sc/source/core/data/sc_documen9.cxx
index 759445f..6be9c71 100644
--- a/binfilter/bf_sc/source/core/data/sc_documen9.cxx
+++ b/binfilter/bf_sc/source/core/data/sc_documen9.cxx
@@ -341,35 +341,6 @@ namespace binfilter {
 /*N*/       pDrawLayer->Clear();
 /*N*/ }
 
-/*N*/ BOOL ScDocument::HasDetectiveObjects(USHORT nTab) const
-/*N*/ {
-/*N*/   //  looks for detective objects, annotations don't count
-/*N*/   //  (used to adjust scale so detective objects hit their cells better)
-/*N*/
-/*N*/   BOOL bFound = FALSE;
-/*N*/
-/*N*/   if (pDrawLayer)
-/*N*/   {
-/*N*/       SdrPage* pPage = pDrawLayer->GetPage(nTab);
-/*N*/       DBG_ASSERT(pPage,"Page ?");
-/*N*/       if (pPage)
-/*N*/       {
-/*N*/           SdrObjListIter aIter( *pPage, IM_DEEPNOGROUPS );
-/*N*/           SdrObject* pObject = aIter.Next();
-/*N*/           while (pObject && !bFound)
-/*N*/           {
-/*N*/               // anything on the internal layer except captions (annotations)
-/*N*/               if ( pObject->GetLayer() == SC_LAYER_INTERN && !pObject->ISA( SdrCaptionObj ) )
-/*N*/                   bFound = TRUE;
-/*N*/
-/*N*/               pObject = aIter.Next();
-/*N*/           }
-/*N*/       }
-/*N*/   }
-/*N*/
-/*N*/   return bFound;
-/*N*/ }
-
 /*N*/ void ScDocument::UpdateFontCharSet()
 /*N*/ {
 /*N*/   //  In alten Versionen (bis incl. 4.0 ohne SP) wurden beim Austausch zwischen
diff --git a/binfilter/inc/bf_sc/document.hxx b/binfilter/inc/bf_sc/document.hxx
index a3779a8..2db2110 100644
--- a/binfilter/inc/bf_sc/document.hxx
+++ b/binfilter/inc/bf_sc/document.hxx
@@ -803,8 +803,6 @@ public:
     void            ClearDetectiveOperations();
     ScDetOpList*    GetDetOpList() const                { return pDetOpList; }
 
-    BOOL            HasDetectiveObjects(USHORT nTab) const;
-
     void            GetSelectionFrame( const ScMarkData& rMark,
                                        SvxBoxItem&      rLineOuter,
                                        SvxBoxInfoItem&  rLineInner );
diff --git a/binfilter/inc/bf_svtools/bf_postwin.h b/binfilter/inc/bf_svtools/bf_postwin.h
index a6bd343..5cffa3f 100644
--- a/binfilter/inc/bf_svtools/bf_postwin.h
+++ b/binfilter/inc/bf_svtools/bf_postwin.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -255,3 +256,5 @@ WIN_BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int nc
 
 // svwin.h nicht mehr includen
 #define _SVWIN_H
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/binfilter/inc/bf_svtools/bf_solar.h b/binfilter/inc/bf_svtools/bf_solar.h
index adffa7a..92c0106 100644
--- a/binfilter/inc/bf_svtools/bf_solar.h
+++ b/binfilter/inc/bf_svtools/bf_solar.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -76,3 +77,5 @@ typedef sal_uInt32          UINT32; /* typedef unsigned int    UINT32; previousl
 #endif
 
 #endif  /* _BF_SOLAR_H */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list