[Libreoffice-commits] core.git: svx/source

Gabor Kelemen kelemeng at ubuntu.com
Thu May 11 14:34:14 UTC 2017


 svx/source/unodraw/unoprov.cxx |   29 -----------------------------
 1 file changed, 29 deletions(-)

New commits:
commit 06fb2eb7a0a6b73b29e0ca6bb670a8105301198c
Author: Gabor Kelemen <kelemeng at ubuntu.com>
Date:   Mon May 8 00:17:45 2017 +0200

    Delete code commented out since 2006
    
    See commit 8b77e2790c206439762cdde3343f64e87bfe0d16
    
    Change-Id: I5f9d4a566377f8e7a59f12b138cc612e710efbdf
    Reviewed-on: https://gerrit.libreoffice.org/37356
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx
index 24ba390d0309..f1ef61726f50 100644
--- a/svx/source/unodraw/unoprov.cxx
+++ b/svx/source/unodraw/unoprov.cxx
@@ -961,35 +961,6 @@ const SvxItemPropertySet* SvxUnoPropertyMapProvider::GetPropertySet(sal_uInt16 n
     return aSetArr[nPropertyId];
 }
 
-
-/** maps the API constant MeasureUnit to a vcl MapUnit enum.
-    Returns false if conversion is not supported.
-
-    @cl: for warnings01 I found out that this method never worked so I thin
-         it is not used at all
-sal_Bool SvxMeasureUnitToMapUnit( const short eApi, int& eVcl ) throw()
-{
-    switch( eVcl )
-    {
-    case util::MeasureUnit::MM_100TH:       eVcl = MapUnit::Map100thMM;    break;
-    case util::MeasureUnit::MM_10TH:        eVcl = MapUnit::Map10thMM;     break;
-    case util::MeasureUnit::MM:             eVcl = MapUnit::MapMM;          break;
-    case util::MeasureUnit::CM:             eVcl = MapUnit::MapCM;          break;
-    case util::MeasureUnit::INCH_1000TH:    eVcl = MapUnit::Map1000thInch; break;
-    case util::MeasureUnit::INCH_100TH:     eVcl = MapUnit::Map100thInch;  break;
-    case util::MeasureUnit::INCH_10TH:      eVcl = MapUnit::Map10thInch;   break;
-    case util::MeasureUnit::INCH:           eVcl = MapUnit::MapInch;        break;
-    case util::MeasureUnit::POINT:          eVcl = MapUnit::MapPoint;       break;
-    case util::MeasureUnit::TWIP:           eVcl = MapUnit::MapTwip;        break;
-    case util::MeasureUnit::PERCENT:        eVcl = MapUnit::MapRelative;    break;
-    default:
-        return false;
-    }
-
-    return true;
-}
-*/
-
 /** maps the vcl MapUnit enum to a API constant MeasureUnit.
     Returns false if conversion is not supported.
 */


More information about the Libreoffice-commits mailing list