[Libreoffice-commits] core.git: include/svx include/unotools sc/inc sc/source sfx2/source svx/source sw/source unotools/source unusedcode.easy

Marcos Paulo de Souza marcos.souza.org at gmail.com
Wed Sep 4 13:50:40 PDT 2013


 include/svx/dialcontrol.hxx                    |    2 
 include/svx/sdr/overlay/overlayrectangle.hxx   |    1 
 include/unotools/configitem.hxx                |   11 -
 sc/inc/compiler.hxx                            |   12 -
 sc/inc/dpobject.hxx                            |    4 
 sc/inc/formulacell.hxx                         |    3 
 sc/inc/rangenam.hxx                            |    2 
 sc/source/core/data/dpobject.cxx               |  215 -------------------------
 sc/source/core/data/formulacell.cxx            |   17 -
 sc/source/core/inc/ddelink.hxx                 |    3 
 sc/source/core/tool/compiler.cxx               |   29 ---
 sc/source/core/tool/ddelink.cxx                |    5 
 sc/source/core/tool/rangenam.cxx               |   10 -
 sc/source/ui/sidebar/CellLineStyleValueSet.cxx |   10 -
 sc/source/ui/sidebar/CellLineStyleValueSet.hxx |    2 
 sfx2/source/sidebar/Deck.cxx                   |   14 -
 sfx2/source/sidebar/Deck.hxx                   |    1 
 svx/source/dialog/dialcontrol.cxx              |    5 
 svx/source/sdr/overlay/overlayrectangle.cxx    |   15 -
 sw/source/filter/ww8/writerwordglue.cxx        |    6 
 sw/source/filter/ww8/writerwordglue.hxx        |   14 -
 unotools/source/config/configitem.cxx          |   38 ----
 unusedcode.easy                                |   16 -
 23 files changed, 435 deletions(-)

New commits:
commit 62d50671919424ca4dd80cd7733b7b259132b9ab
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date:   Tue Sep 3 12:02:53 2013 -0300

    Remove more unused methods
    
    Change-Id: I8fec40d767905bcca366257a67f669eaa1055cbc
    Reviewed-on: https://gerrit.libreoffice.org/5789
    Tested-by: LibreOffice gerrit bot <gerrit at libreoffice.org>
    Reviewed-by: Marcos Souza <marcos.souza.org at gmail.com>
    Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
    Tested-by: Thomas Arnhold <thomas at arnhold.org>

diff --git a/include/svx/dialcontrol.hxx b/include/svx/dialcontrol.hxx
index 84dc1dc..92a3ace 100644
--- a/include/svx/dialcontrol.hxx
+++ b/include/svx/dialcontrol.hxx
@@ -116,8 +116,6 @@ public:
      *     2 means 100th of degree
      */
     void                SetLinkedField( NumericField* pField, sal_Int32 nDecimalPlaces = 0);
-    /** Returns the linked numeric edit field, or 0. */
-    NumericField*       GetLinkedField() const;
 
     /** The passed handler is called whenever the totation value changes. */
     void                SetModifyHdl( const Link& rLink );
diff --git a/include/svx/sdr/overlay/overlayrectangle.hxx b/include/svx/sdr/overlay/overlayrectangle.hxx
index 3d2f6f7..95de313 100644
--- a/include/svx/sdr/overlay/overlayrectangle.hxx
+++ b/include/svx/sdr/overlay/overlayrectangle.hxx
@@ -71,7 +71,6 @@ namespace sdr
 
             // added CursorBlinkTime (in ms)
             sal_uInt32 getBlinkTime() const { return mnBlinkTime; }
-            void setBlinkTime(sal_uInt32 nNew);
 
             // execute event from base class ::sdr::animation::Event. Default
             // implementation does nothing and does not create a new event.
diff --git a/include/unotools/configitem.hxx b/include/unotools/configitem.hxx
index d9f7675..f942722 100644
--- a/include/unotools/configitem.hxx
+++ b/include/unotools/configitem.hxx
@@ -156,17 +156,6 @@ namespace utl
             // add a new node without setting any properties
             sal_Bool                AddNode(const OUString& rNode, const OUString& rNewNode);
 
-            /** get a name for a new element of a set node
-                @param _rSetNode
-                    relative path to the set node
-                @param _rBaseName
-                    <ul><li><b>in</b>: the base to use when calculating a new name</li>
-                        <li><b>out</b>: an unused element name</li>
-                    </ul>
-                @return <TRUE/> if a free name could be generated
-            */
-            sal_Bool                getUniqueSetElementName( const OUString& _rSetNode, OUString& _rBaseName);
-
         public:
             virtual ~ConfigItem();
 
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx
index 5ce3a5d..1870ddc 100644
--- a/sc/inc/compiler.hxx
+++ b/sc/inc/compiler.hxx
@@ -437,18 +437,6 @@ public:
     static void MoveRelWrap( ScTokenArray& rArr, ScDocument* pDoc, const ScAddress& rPos,
                              SCCOL nMaxCol, SCROW nMaxRow );
 
-    /** If the character is allowed as first character in sheet names or
-        references, includes '$' and '?'. */
-    static bool IsCharWordChar(
-        String const & rStr, xub_StrLen nPos,
-        const formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO );
-
-    /** If the character is allowed in sheet names, thus may be part of a
-        reference, includes '$' and '?' and such. */
-    static bool IsWordChar(
-        String const & rStr, xub_StrLen nPos,
-        const formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO );
-
     /** If the character is allowed as tested by nFlags (SC_COMPILER_C_...
         bits) for all known address conventions. If more than one bit is given
         in nFlags, all bits must match. If bTestLetterNumeric is false and
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index bbd3ba8..b2f6e38 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -183,10 +183,6 @@ public:
         const OUString& rDataFieldName,
         std::vector<com::sun::star::sheet::DataPilotFieldFilter>& rFilters);
 
-    bool                ParseFilters( ScDPGetPivotDataField& rTarget,
-                                      std::vector< ScDPGetPivotDataField >& rFilters,
-                                      const OUString& rFilterList );
-
     void GetMemberResultNames(ScDPUniqueStringSet& rNames, long nDimension);
 
     void                ToggleDetails(const ::com::sun::star::sheet::DataPilotTableHeaderData& rElemDesc, ScDPObject* pDestObj);
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index c8a7414..835eb91 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -244,7 +244,6 @@ public:
     bool IsValueNoError();
     bool            IsHybridValueCell(); // for cells after import to deal with inherited number formats
     double          GetValue();
-    double          GetValueAlways();   // ignore errors
     OUString   GetString();
     const ScMatrix* GetMatrix();
     bool            GetMatrixOrigin( ScAddress& rPos ) const;
@@ -309,7 +308,6 @@ public:
 
     void SetResultToken( const formula::FormulaToken* pToken );
 
-    double GetResultDouble() const;
     OUString GetResultString() const;
 
     void            SetErrCode( sal_uInt16 n );
@@ -342,7 +340,6 @@ public:
     void EndListeningTo( sc::EndListeningContext& rCxt );
 
     bool IsShared() const;
-    bool IsSharedInvariant() const;
     bool IsSharedTop() const;
     SCROW GetSharedTopRow() const;
     SCROW GetSharedLength() const;
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx
index e2731b5..007ed70 100644
--- a/sc/inc/rangenam.hxx
+++ b/sc/inc/rangenam.hxx
@@ -148,9 +148,7 @@ public:
     static void     MakeValidName( String& rName );
     SC_DLLPUBLIC static bool        IsNameValid( const String& rName, ScDocument* pDoc );
 
-    SC_DLLPUBLIC void SetMaxRow(SCROW nRow);
     SCROW GetMaxRow() const;
-    SC_DLLPUBLIC void SetMaxCol(SCCOL nCol);
     SCCOL GetMaxCol() const;
 
     void            CompileUnresolvedXML();
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index eca69a9..3c5f7b2 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1623,221 +1623,6 @@ static bool lcl_IsAtStart( const String& rList, const String& rSearch, sal_Int32
     return false;
 }
 
-bool ScDPObject::ParseFilters( ScDPGetPivotDataField& rTarget,
-                               std::vector< ScDPGetPivotDataField >& rFilters,
-                               const OUString& rFilterList )
-{
-    // parse the string rFilterList into parameters for GetPivotData
-
-    CreateObjects();            // create xSource if not already done
-
-    std::vector<String> aDataNames;     // data fields (source name)
-    std::vector<String> aGivenNames;    // data fields (compound name)
-    std::vector<String> aFieldNames;    // column/row/data fields
-    std::vector< uno::Sequence<OUString> > aFieldValues;
-
-    //
-    // get all the field and item names
-    //
-
-    uno::Reference<container::XNameAccess> xDimsName = xSource->getDimensions();
-    uno::Reference<container::XIndexAccess> xIntDims = new ScNameToIndexAccess( xDimsName );
-    sal_Int32 nDimCount = xIntDims->getCount();
-    for ( sal_Int32 nDim = 0; nDim<nDimCount; nDim++ )
-    {
-        uno::Reference<uno::XInterface> xIntDim = ScUnoHelpFunctions::AnyToInterface( xIntDims->getByIndex(nDim) );
-        uno::Reference<container::XNamed> xDim( xIntDim, uno::UNO_QUERY );
-        uno::Reference<beans::XPropertySet> xDimProp( xDim, uno::UNO_QUERY );
-        uno::Reference<sheet::XHierarchiesSupplier> xDimSupp( xDim, uno::UNO_QUERY );
-        sal_Bool bDataLayout = ScUnoHelpFunctions::GetBoolProperty( xDimProp,
-                            OUString(SC_UNO_DP_ISDATALAYOUT) );
-        sal_Int32 nOrient = ScUnoHelpFunctions::GetEnumProperty(
-                            xDimProp, OUString(SC_UNO_DP_ORIENTATION),
-                            sheet::DataPilotFieldOrientation_HIDDEN );
-        if ( !bDataLayout )
-        {
-            if ( nOrient == sheet::DataPilotFieldOrientation_DATA )
-            {
-                OUString aSourceName;
-                OUString aGivenName;
-                ScDPOutput::GetDataDimensionNames( aSourceName, aGivenName, xIntDim );
-                aDataNames.push_back( aSourceName );
-                aGivenNames.push_back( aGivenName );
-            }
-            else if ( nOrient != sheet::DataPilotFieldOrientation_HIDDEN )
-            {
-                // get level names, as in ScDPOutput
-
-                uno::Reference<container::XIndexAccess> xHiers = new ScNameToIndexAccess( xDimSupp->getHierarchies() );
-                sal_Int32 nHierarchy = ScUnoHelpFunctions::GetLongProperty( xDimProp,
-                                                    OUString(SC_UNO_DP_USEDHIERARCHY) );
-                if ( nHierarchy >= xHiers->getCount() )
-                    nHierarchy = 0;
-
-                uno::Reference<uno::XInterface> xHier = ScUnoHelpFunctions::AnyToInterface(
-                                                    xHiers->getByIndex(nHierarchy) );
-                uno::Reference<sheet::XLevelsSupplier> xHierSupp( xHier, uno::UNO_QUERY );
-                if ( xHierSupp.is() )
-                {
-                    uno::Reference<container::XIndexAccess> xLevels = new ScNameToIndexAccess( xHierSupp->getLevels() );
-                    sal_Int32 nLevCount = xLevels->getCount();
-                    for (sal_Int32 nLev=0; nLev<nLevCount; nLev++)
-                    {
-                        uno::Reference<uno::XInterface> xLevel = ScUnoHelpFunctions::AnyToInterface(
-                                                            xLevels->getByIndex(nLev) );
-                        uno::Reference<container::XNamed> xLevNam( xLevel, uno::UNO_QUERY );
-                        uno::Reference<sheet::XMembersSupplier> xLevSupp( xLevel, uno::UNO_QUERY );
-                        if ( xLevNam.is() && xLevSupp.is() )
-                        {
-                            uno::Reference<container::XNameAccess> xMembers = xLevSupp->getMembers();
-
-                            String aFieldName( xLevNam->getName() );
-                            uno::Sequence<OUString> aMemberNames( xMembers->getElementNames() );
-
-                            aFieldNames.push_back( aFieldName );
-                            aFieldValues.push_back( aMemberNames );
-                        }
-                    }
-                }
-            }
-        }
-    }
-
-    //
-    // compare and build filters
-    //
-
-    SCSIZE nDataFields = aDataNames.size();
-    SCSIZE nFieldCount = aFieldNames.size();
-    OSL_ENSURE( aGivenNames.size() == nDataFields && aFieldValues.size() == nFieldCount, "wrong count" );
-
-    bool bError = false;
-    bool bHasData = false;
-    String aRemaining(comphelper::string::strip(rFilterList, ' '));
-    while ( aRemaining.Len() && !bError )
-    {
-        bool bUsed = false;
-
-        // look for data field name
-
-        for ( SCSIZE nDataPos=0; nDataPos<nDataFields && !bUsed; nDataPos++ )
-        {
-            String aFound;
-            sal_Int32 nMatched = 0;
-            if ( lcl_IsAtStart( aRemaining, aDataNames[nDataPos], nMatched, false, NULL ) )
-                aFound = aDataNames[nDataPos];
-            else if ( lcl_IsAtStart( aRemaining, aGivenNames[nDataPos], nMatched, false, NULL ) )
-                aFound = aGivenNames[nDataPos];
-
-            if ( aFound.Len() )
-            {
-                rTarget.maFieldName = aFound;
-                aRemaining.Erase( 0, sal::static_int_cast<xub_StrLen>(nMatched) );
-                bHasData = true;
-                bUsed = true;
-            }
-        }
-
-        // look for field name
-
-        String aSpecField;
-        bool bHasFieldName = false;
-        if ( !bUsed )
-        {
-            sal_Int32 nMatched = 0;
-            for ( SCSIZE nField=0; nField<nFieldCount && !bHasFieldName; nField++ )
-            {
-                if ( lcl_IsAtStart( aRemaining, aFieldNames[nField], nMatched, true, NULL ) )
-                {
-                    aSpecField = aFieldNames[nField];
-                    aRemaining.Erase( 0, sal::static_int_cast<xub_StrLen>(nMatched) );
-                    aRemaining = comphelper::string::stripStart(aRemaining, ' ');
-
-                    // field name has to be followed by item name in brackets
-                    if ( aRemaining.GetChar(0) == '[' )
-                    {
-                        bHasFieldName = true;
-                        // bUsed remains false - still need the item
-                    }
-                    else
-                    {
-                        bUsed = true;
-                        bError = true;
-                    }
-                }
-            }
-        }
-
-        // look for field item
-
-        if ( !bUsed )
-        {
-            bool bItemFound = false;
-            sal_Int32 nMatched = 0;
-            String aFoundName;
-            String aFoundValue;
-            sheet::GeneralFunction eFunc = sheet::GeneralFunction_NONE;
-            sheet::GeneralFunction eFoundFunc = sheet::GeneralFunction_NONE;
-
-            for ( SCSIZE nField=0; nField<nFieldCount; nField++ )
-            {
-                // If a field name is given, look in that field only, otherwise in all fields.
-                // aSpecField is initialized from aFieldNames array, so exact comparison can be used.
-                if ( !bHasFieldName || aFieldNames[nField] == aSpecField )
-                {
-                    const uno::Sequence<OUString>& rItems = aFieldValues[nField];
-                    sal_Int32 nItemCount = rItems.getLength();
-                    const OUString* pItemArr = rItems.getConstArray();
-                    for ( sal_Int32 nItem=0; nItem<nItemCount; nItem++ )
-                    {
-                        if ( lcl_IsAtStart( aRemaining, pItemArr[nItem], nMatched, false, &eFunc ) )
-                        {
-                            if ( bItemFound )
-                                bError = true;      // duplicate (also across fields)
-                            else
-                            {
-                                aFoundName = aFieldNames[nField];
-                                aFoundValue = pItemArr[nItem];
-                                eFoundFunc = eFunc;
-                                bItemFound = true;
-                                bUsed = true;
-                            }
-                        }
-                    }
-                }
-            }
-
-            if ( bItemFound && !bError )
-            {
-                ScDPGetPivotDataField aField;
-                aField.maFieldName = aFoundName;
-                aField.meFunction = eFoundFunc;
-                aField.mbValIsStr = true;
-                aField.maValStr = aFoundValue;
-                aField.mnValNum = 0.0;
-                rFilters.push_back( aField );
-
-                aRemaining.Erase( 0, sal::static_int_cast<xub_StrLen>(nMatched) );
-            }
-        }
-
-        if ( !bUsed )
-            bError = true;
-
-        // remove any number of spaces between entries
-        aRemaining = comphelper::string::stripStart(aRemaining, ' ');
-    }
-
-    if ( !bError && !bHasData && aDataNames.size() == 1 )
-    {
-        // if there's only one data field, its name need not be specified
-        rTarget.maFieldName = aDataNames[0];
-        bHasData = true;
-    }
-
-    return bHasData && !bError;
-}
-
 void ScDPObject::ToggleDetails(const DataPilotTableHeaderData& rElemDesc, ScDPObject* pDestObj)
 {
     CreateObjects();            // create xSource if not already done
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 2ca77d1..da2f75b 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1700,11 +1700,6 @@ void ScFormulaCell::SetResultToken( const formula::FormulaToken* pToken )
     aResult.SetToken(pToken);
 }
 
-double ScFormulaCell::GetResultDouble() const
-{
-    return aResult.GetDouble();
-}
-
 OUString ScFormulaCell::GetResultString() const
 {
     return aResult.GetString();
@@ -1869,13 +1864,6 @@ double ScFormulaCell::GetValue()
     return 0.0;
 }
 
-double ScFormulaCell::GetValueAlways()
-{
-    // for goal seek: return result value even if error code is set
-    MaybeInterpret();
-    return aResult.GetDouble();
-}
-
 OUString ScFormulaCell::GetString()
 {
     MaybeInterpret();
@@ -3849,11 +3837,6 @@ bool ScFormulaCell::IsShared() const
     return mxGroup.get() != NULL;
 }
 
-bool ScFormulaCell::IsSharedInvariant() const
-{
-    return mxGroup ? mxGroup->mbInvariant : false;
-}
-
 bool ScFormulaCell::IsSharedTop() const
 {
     if (!mxGroup)
diff --git a/sc/source/core/inc/ddelink.hxx b/sc/source/core/inc/ddelink.hxx
index be1c0f7..309bac8 100644
--- a/sc/source/core/inc/ddelink.hxx
+++ b/sc/source/core/inc/ddelink.hxx
@@ -70,9 +70,6 @@ public:
     const ScMatrix* GetResult() const;
     void            SetResult( const ScMatrixRef& pRes );
 
-                    // XML and Excel import after NewData()
-    ScMatrixRef     GetModifiableResult();
-
     const String&   GetAppl() const     { return aAppl; }
     const String&   GetTopic() const    { return aTopic; }
     const String&   GetItem() const     { return aItem; }
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 62d4178..5e58cc6 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -4137,35 +4137,6 @@ void ScCompiler::MoveRelWrap( ScTokenArray& rArr, ScDocument* pDoc, const ScAddr
     }
 }
 
-bool ScCompiler::IsCharWordChar(
-    String const & rStr, xub_StrLen nPos, const formula::FormulaGrammar::AddressConvention eConv )
-{
-    sal_Unicode c = rStr.GetChar( nPos );
-    sal_Unicode cLast = nPos > 0 ? rStr.GetChar(nPos-1) : 0;
-    if (c < 128)
-    {
-        return pConventions[eConv] ? (pConventions[eConv]->getCharTableFlags(c, cLast) & SC_COMPILER_C_CHAR_WORD) == SC_COMPILER_C_CHAR_WORD :
-            false;   // no convention => assume invalid
-    }
-    else
-        return ScGlobal::pCharClass->isLetterNumeric( rStr, nPos );
-}
-
-bool ScCompiler::IsWordChar(
-    String const & rStr, xub_StrLen nPos,
-    const formula::FormulaGrammar::AddressConvention eConv )
-{
-    sal_Unicode c = rStr.GetChar( nPos );
-    sal_Unicode cLast = nPos > 0 ? rStr.GetChar(nPos-1) : 0;
-    if (c < 128)
-    {
-        return pConventions[eConv] ? (pConventions[eConv]->getCharTableFlags(c, cLast) & SC_COMPILER_C_WORD) == SC_COMPILER_C_WORD :
-            false;   // convention not known => assume invalid
-    }
-    else
-        return ScGlobal::pCharClass->isLetterNumeric( rStr, nPos );
-}
-
 bool ScCompiler::IsCharFlagAllConventions(
     String const & rStr, xub_StrLen nPos, sal_uLong nFlags, bool bTestLetterNumeric )
 {
diff --git a/sc/source/core/tool/ddelink.cxx b/sc/source/core/tool/ddelink.cxx
index 4228d7e..e007c85 100644
--- a/sc/source/core/tool/ddelink.cxx
+++ b/sc/source/core/tool/ddelink.cxx
@@ -249,11 +249,6 @@ void ScDdeLink::SetResult( const ScMatrixRef& pRes )
     pResult = pRes;
 }
 
-ScMatrixRef ScDdeLink::GetModifiableResult()
-{
-    return pResult;
-}
-
 void ScDdeLink::TryUpdate()
 {
     if (bIsInUpdate)
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 5df9813..23245dc 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -489,21 +489,11 @@ bool ScRangeData::IsNameValid( const String& rName, ScDocument* pDoc )
     return true;
 }
 
-void ScRangeData::SetMaxRow(SCROW nRow)
-{
-    mnMaxRow = nRow;
-}
-
 SCROW ScRangeData::GetMaxRow() const
 {
     return mnMaxRow >= 0 ? mnMaxRow : MAXROW;
 }
 
-void ScRangeData::SetMaxCol(SCCOL nCol)
-{
-    mnMaxCol = nCol;
-}
-
 SCCOL ScRangeData::GetMaxCol() const
 {
     return mnMaxCol >= 0 ? mnMaxCol : MAXCOL;
diff --git a/sc/source/ui/sidebar/CellLineStyleValueSet.cxx b/sc/source/ui/sidebar/CellLineStyleValueSet.cxx
index b093503..96d6f07 100644
--- a/sc/source/ui/sidebar/CellLineStyleValueSet.cxx
+++ b/sc/source/ui/sidebar/CellLineStyleValueSet.cxx
@@ -59,21 +59,11 @@ void CellLineStyleValueSet::SetSelItem(sal_uInt16 nSel)
     }
 }
 
-sal_uInt16 CellLineStyleValueSet::GetSelItem()
-{
-    return nSelItem;
-}
-
 void CellLineStyleValueSet::SetImage(Image img)
 {
     imgCus = img;
 }
 
-void CellLineStyleValueSet::SetCusEnable(bool bEnable)
-{
-    bCusEnable = bEnable;
-}
-
 void CellLineStyleValueSet::UserDraw( const UserDrawEvent& rUDEvt )
 {
     Rectangle aRect = rUDEvt.GetRect();
diff --git a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
index 6044b99..711213c 100644
--- a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
+++ b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
@@ -39,9 +39,7 @@ public:
 
     void SetUnit(const OUString* str);
     void SetSelItem(sal_uInt16 nSel);
-    sal_uInt16 GetSelItem();
     void SetImage(Image img);
-    void SetCusEnable(bool bEnable);
     virtual void UserDraw( const UserDrawEvent& rUDEvt );
 };
 
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index ce0dd6f..c0b80e4 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -152,20 +152,6 @@ Rectangle Deck::GetContentArea (void) const
         aWindowSize.Height() - 1 - Theme::GetInteger(Theme::Int_DeckBottomPadding) - nBorderSize);
 }
 
-
-
-
-::rtl::OUString Deck::GetIconURL (const bool bIsHighContrastModeActive) const
-{
-    if (bIsHighContrastModeActive)
-        return msHighContrastIconURL;
-    else
-        return msIconURL;
-}
-
-
-
-
 void Deck::Paint (const Rectangle& rUpdateArea)
 {
     (void) rUpdateArea;
diff --git a/sfx2/source/sidebar/Deck.hxx b/sfx2/source/sidebar/Deck.hxx
index 20e5c77..bc8fe5a 100644
--- a/sfx2/source/sidebar/Deck.hxx
+++ b/sfx2/source/sidebar/Deck.hxx
@@ -56,7 +56,6 @@ public:
     const ::rtl::OUString& GetId (void) const;
     DeckTitleBar* GetTitleBar (void) const;
     Rectangle GetContentArea (void) const;
-    ::rtl::OUString GetIconURL (const bool bIsHighContrastModeActive) const;
     void SetPanels (const SharedPanelContainer& rPanels);
     const SharedPanelContainer& GetPanels (void) const;
     void RequestLayout (void);
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx
index 3c9ce68..5de8552 100644
--- a/svx/source/dialog/dialcontrol.cxx
+++ b/svx/source/dialog/dialcontrol.cxx
@@ -427,11 +427,6 @@ bool DialControl::IsValueModified()
     return mpImpl->mnInitialAngle != mpImpl->mnAngle;
 }
 
-NumericField* DialControl::GetLinkedField() const
-{
-    return mpImpl->mpLinkField;
-}
-
 void DialControl::SetModifyHdl( const Link& rLink )
 {
     mpImpl->maModifyHdl = rLink;
diff --git a/svx/source/sdr/overlay/overlayrectangle.cxx b/svx/source/sdr/overlay/overlayrectangle.cxx
index 7f07be0..5af04c9 100644
--- a/svx/source/sdr/overlay/overlayrectangle.cxx
+++ b/svx/source/sdr/overlay/overlayrectangle.cxx
@@ -105,21 +105,6 @@ namespace sdr
             }
         }
 
-        void OverlayRectangle::setBlinkTime(sal_uInt32 nNew)
-        {
-            if(mnBlinkTime != nNew)
-            {
-                // remember new value
-                mnBlinkTime = nNew;
-
-                // #i53216# check blink time value range
-                mnBlinkTime = impCheckBlinkTimeValueRange(mnBlinkTime);
-
-                // register change (after change)
-                objectChange();
-            }
-        }
-
         void OverlayRectangle::Trigger(sal_uInt32 nTime)
         {
             if(getOverlayManager())
diff --git a/sw/source/filter/ww8/writerwordglue.cxx b/sw/source/filter/ww8/writerwordglue.cxx
index 18968d0..226b20c 100644
--- a/sw/source/filter/ww8/writerwordglue.cxx
+++ b/sw/source/filter/ww8/writerwordglue.cxx
@@ -418,12 +418,6 @@ namespace sw
                 mbHasFooter = false;
         }
 
-        bool HdFtDistanceGlue::EqualTopBottom(const HdFtDistanceGlue &rOther)
-            const
-        {
-            return (dyaTop == rOther.dyaTop && dyaBottom == rOther.dyaBottom);
-        }
-
         bool HdFtDistanceGlue::StrictEqualTopBottom(const HdFtDistanceGlue &rOther)
             const
         {
diff --git a/sw/source/filter/ww8/writerwordglue.hxx b/sw/source/filter/ww8/writerwordglue.hxx
index 263a13e..98f2c10 100644
--- a/sw/source/filter/ww8/writerwordglue.hxx
+++ b/sw/source/filter/ww8/writerwordglue.hxx
@@ -133,20 +133,6 @@ namespace sw
             bool HasFooter() const { return mbHasFooter; }
 
             /** Is the top of the page the same in both objects
-
-                Ignoring the difference in header and footers, will the main
-                document text have the same top/bottom bounds in word between
-                both these objects.
-
-                @param
-                rOther the other HdFtDistanceGlue to compare against
-
-                @return true if the main text areas top and bottom is at the
-                same location, false otherwise.
-            */
-            bool EqualTopBottom(const HdFtDistanceGlue &rOther) const;
-
-            /** Is the top of the page the same in both objects
                 when there are headers\footers present or non-present in both objects
 
                 This test is important, because we would like to ignore cases
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index d82af67..4597cc1 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -1089,44 +1089,6 @@ sal_Bool ConfigItem::ReplaceSetProperties(
     return bRet;
 }
 
-sal_Bool ConfigItem::getUniqueSetElementName( const OUString& _rSetNode, OUString& _rName)
-{
-    Reference<XHierarchicalNameAccess> xHierarchyAccess = GetTree();
-    sal_Bool bRet = sal_False;
-    if(xHierarchyAccess.is())
-    {
-        try
-        {
-            Reference< XNameAccess > xSetNode;
-            xHierarchyAccess->getByHierarchicalName(_rSetNode) >>= xSetNode;
-            if (xSetNode.is())
-            {
-                const sal_uInt32 nPrime = 65521;                            // a prime number
-                const sal_uInt32 nPrimeLess2 = nPrime - 2;
-                sal_uInt32 nEngendering     = (rand() % nPrimeLess2) + 2;   // the engendering of the field
-
-                // the element which will loop through the field
-                sal_uInt32 nFieldElement = nEngendering;
-
-                for (; 1 != nFieldElement; nFieldElement = (nFieldElement * nEngendering) % nPrime)
-                {
-                    OUString sThisRoundTrial = _rName;
-                    sThisRoundTrial += OUString::number(nFieldElement);
-
-                    if (!xSetNode->hasByName(sThisRoundTrial))
-                    {
-                        _rName = sThisRoundTrial;
-                        bRet =  sal_True;
-                        break;
-                    }
-                }
-            }
-        }
-        CATCH_INFO("Exception from getUniqueSetElementName(): ")
-    }
-    return bRet;
-}
-
 sal_Bool ConfigItem::AddNode(const OUString& rNode, const OUString& rNewNode)
 {
     ValueCounter_Impl aCounter(pImpl->nInValueChange);
diff --git a/unusedcode.easy b/unusedcode.easy
index 5905402..06a14a0 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -32,13 +32,9 @@ ScCellValue::set(EditTextObject const&)
 ScCellValue::set(ScFormulaCell const&)
 ScColorScaleEntry::UpdateMoveTab(short, short, short)
 ScColumn::MoveListeners(SvtBroadcaster&, int)
-ScCompiler::IsCharWordChar(String const&, unsigned short, formula::FormulaGrammar::AddressConvention)
-ScCompiler::IsWordChar(String const&, unsigned short, formula::FormulaGrammar::AddressConvention)
 ScComplexRefData::IsDeleted() const
 ScDBQueryDataIterator::DataAccessInternal::setPos(unsigned long)
 ScDPFilteredCache::SingleFilter::getMatchValue() const
-ScDPObject::ParseFilters(ScDPGetPivotDataField&, std::__debug::vector<ScDPGetPivotDataField, std::allocator<ScDPGetPivotDataField> >&, rtl::OUString const&)
-ScDdeLink::GetModifiableResult()
 ScDocument::GetCellCount(short, short) const
 ScDocument::GetFormulaTokens(ScAddress const&) const
 ScDocument::GetStringCell(ScAddress const&) const
@@ -46,14 +42,9 @@ ScDocument::IsEmptyData(short, short) const
 ScDocumentImport::setFormulaCell(ScAddress const&, ScTokenArray const&)
 ScEditUtil::GetSpaceDelimitedString(EditTextObject const&)
 ScExtIButton::GetSelected() const
-ScFormulaCell::GetResultDouble() const
-ScFormulaCell::GetValueAlways()
 ScFormulaCell::HasColRowName() const
-ScFormulaCell::IsSharedInvariant() const
 ScGlobal::GetStandardFormat(double, SvNumberFormatter&, unsigned long, short)
 ScMyNotEmptyCellsIterator::GetCell() const
-ScRangeData::SetMaxCol(short)
-ScRangeData::SetMaxRow(int)
 ScRangeStringConverter::GetRangeListFromString(com::sun::star::uno::Sequence<com::sun::star::table::CellRangeAddress>&, rtl::OUString const&, ScDocument const*, formula::FormulaGrammar::AddressConvention, unsigned short, unsigned short)
 ScRefCellValue::commit(ScColumn&, int) const
 ScUndoSetCell::ScUndoSetCell(ScDocShell*, ScAddress const&, ScCellValue const&)
@@ -146,8 +137,6 @@ oox::xls::WorksheetGlobals::getColumns(oox::ValueRange const&) const
 oox::xls::WorksheetGlobals::getRows(oox::ValueRange const&) const
 sc::CellTextAttr::CellTextAttr(unsigned short, unsigned char)
 sc::ColumnSet::has(short, short) const
-sc::sidebar::CellLineStyleValueSet::GetSelItem()
-sc::sidebar::CellLineStyleValueSet::SetCusEnable(bool)
 sc::sidebar::CellLineStyleValueSet::SetImage(Image)
 sc_apitest::main()
 sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
@@ -159,13 +148,11 @@ sd::framework::Pane::SetWindow(Window*)
 sd::sidebar::LayoutMenu::GetMinimumWidth()
 sd::sidebar::LayoutMenu::GetPreferredSize()
 sd::sidebar::LayoutMenu::GetPreferredWidth(int)
-sdr::overlay::OverlayRectangle::setBlinkTime(unsigned int)
 sdr::overlay::OverlayRectangle::setSecondPosition(basegfx::B2DPoint const&)
 sdr::table::SdrTableObj::getRowCount() const
 sfx2::sidebar::AsynchronousCall::RequestCall(boost::function<void ()> const&)
 sfx2::sidebar::Context::EvaluateMatch(std::__debug::vector<sfx2::sidebar::Context, std::allocator<sfx2::sidebar::Context> > const&) const
 sfx2::sidebar::ContextList::IsEmpty()
-sfx2::sidebar::Deck::GetIconURL(bool) const
 sfx2::sidebar::Deck::PrintWindowTree(std::__debug::vector<sfx2::sidebar::Panel*, std::allocator<sfx2::sidebar::Panel*> > const&)
 sfx2::sidebar::EnumContext::EvaluateMatch(std::__debug::vector<sfx2::sidebar::EnumContext, std::allocator<sfx2::sidebar::EnumContext> > const&) const
 sfx2::sidebar::EnumContext::GetApplication() const
@@ -176,16 +163,13 @@ sfx2::sidebar::SidebarDockingWindow::GetChildWindow()
 std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >::_Rb_tree(std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >&&)
 std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr<formula::FormulaTokenArray>&)
 std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr_ref<formula::FormulaTokenArray>)
-svx::DialControl::GetLinkedField() const
 svx::DialControl::GetModifyHdl() const
 svx::sidebar::AreaPropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
 svx::sidebar::LinePropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
 svx::sidebar::LineWidthControl::GetValueSet()
 svx::sidebar::ParaPropertyPanel::InitImageList(boost::scoped_ptr<ToolBox>&, ImageList&, ImageList&)
 svx::sidebar::ParaPropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
-sw::util::HdFtDistanceGlue::EqualTopBottom(sw::util::HdFtDistanceGlue const&) const
 unoidl::UnoidlProvider::getConstant(unsigned int) const
-utl::ConfigItem::getUniqueSetElementName(rtl::OUString const&, rtl::OUString&)
 utl::toISO8601(com::sun::star::util::Time const&)
 vclmain::createApplication()
 writerfilter::ooxml::OOXMLFastContextHandler::mark(unsigned int const&, boost::shared_ptr<writerfilter::ooxml::OOXMLValue>)


More information about the Libreoffice-commits mailing list