[Libreoffice-commits] .: sc/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Tue Jun 12 13:01:00 PDT 2012


 sc/source/ui/condformat/condformatdlg.cxx |   30 ------------------------------
 1 file changed, 30 deletions(-)

New commits:
commit 1c18604836ce8063b80cc8090445bf0c0094c5d8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 12 22:00:40 2012 +0200

    -Werror,-Wunused-function
    
    Change-Id: I1b12a923e8c045c7ebca8c0b77b8135d3e072ac9

diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index 81a681b..8434d53 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -709,36 +709,6 @@ ScColorScaleEntry* createColorScaleEntry( const ListBox& rType, const ColorListB
     return pEntry;
 }
 
-void GetDataBarType(const ListBox& rLstBox, const Edit& rEd, ScColorScaleEntry* pEntry )
-{
-    double nVal = 0;
-    switch(rLstBox.GetSelectEntryPos())
-    {
-        case 0:
-            pEntry->SetMin(true);
-            break;
-        case 1:
-            pEntry->SetMax(true);
-            break;
-        case 2:
-            pEntry->SetPercentile(true);
-            nVal = rtl::math::stringToDouble(rEd.GetText(), '.', ',');
-            pEntry->SetValue(nVal);
-            break;
-        case 3:
-            nVal = rtl::math::stringToDouble(rEd.GetText(), '.', ',');
-            pEntry->SetPercent(true);
-            pEntry->SetValue(nVal);
-            break;
-        case 4:
-            nVal = rtl::math::stringToDouble(rEd.GetText(), '.', ',');
-            pEntry->SetValue(nVal);
-            break;
-        case 5:
-            break;
-    }
-}
-
 }
 
 ScFormatEntry* ScCondFrmtEntry::createColorscaleEntry() const


More information about the Libreoffice-commits mailing list