[Libreoffice-commits] core.git: vcl/aqua vcl/inc vcl/Library_vcl.mk

Tor Lillqvist tml at iki.fi
Tue Mar 19 10:14:48 PDT 2013


 vcl/Library_vcl.mk                    |    1 
 vcl/aqua/source/gdi/atsui/salgdi.cxx  |    1 
 vcl/aqua/source/gdi/salcolorutils.cxx |   42 -------------------------------
 vcl/inc/aqua/salcolorutils.hxx        |   45 ----------------------------------
 vcl/inc/aqua/salvd.h                  |    1 
 vcl/inc/ios/salcolorutils.hxx         |   37 ---------------------------
 vcl/inc/ios/salvd.h                   |    1 
 7 files changed, 128 deletions(-)

New commits:
commit 63a66e57870832dc17b64f40eefcbe5482c1c54e
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Mar 19 18:27:10 2013 +0200

    SetSalColor() and GetSalColor() are unused
    
    Change-Id: I1d33abe2e2ccb6d62895da70da89fbbaa0c3b426

diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index a63a523..b176fd5 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -444,7 +444,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
     vcl/aqua/source/dtrans/aqua_clipboard \
     vcl/aqua/source/dtrans/service_entry \
     vcl/quartz/salbmp \
-    vcl/aqua/source/gdi/salcolorutils \
     vcl/aqua/source/gdi/salgdicommon \
     vcl/aqua/source/gdi/salgdiutils \
     vcl/aqua/source/gdi/salmathutils \
diff --git a/vcl/aqua/source/gdi/atsui/salgdi.cxx b/vcl/aqua/source/gdi/atsui/salgdi.cxx
index af86b28..9c9eb9d 100644
--- a/vcl/aqua/source/gdi/atsui/salgdi.cxx
+++ b/vcl/aqua/source/gdi/atsui/salgdi.cxx
@@ -37,7 +37,6 @@
 
 #include "aqua/atsui/salgdi.h"
 #include "aqua/salframe.h"
-#include "aqua/salcolorutils.hxx"
 #include "aqua/atsui/salatsuifontutils.hxx"
 
 #include "fontsubset.hxx"
diff --git a/vcl/aqua/source/gdi/salcolorutils.cxx b/vcl/aqua/source/gdi/salcolorutils.cxx
deleted file mode 100644
index 7cfaa14..0000000
--- a/vcl/aqua/source/gdi/salcolorutils.cxx
+++ /dev/null
@@ -1,42 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include "vcl/salbtype.hxx"
-
-#include "aqua/salcolorutils.hxx"
-
-// =======================================================================
-
-SalColor GetSalColor( const float* pQuartzColor )
-{
-    return MAKE_SALCOLOR( sal_uInt8( pQuartzColor[0] * 255.0), sal_uInt8(  pQuartzColor[1] * 255.0 ), sal_uInt8( pQuartzColor[2] * 255.0 ) );
-}
-
-void SetSalColor( const SalColor& rColor, float* pQuartzColor )
-{
-    pQuartzColor[0] = (float) SALCOLOR_RED(rColor) / 255.0;
-    pQuartzColor[1] = (float) SALCOLOR_GREEN(rColor) / 255.0;
-    pQuartzColor[2] = (float) SALCOLOR_BLUE(rColor) / 255.0;
-    pQuartzColor[3] = 1.0;
-}
-
-// =======================================================================
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/aqua/salcolorutils.hxx b/vcl/inc/aqua/salcolorutils.hxx
deleted file mode 100644
index bba70e2..0000000
--- a/vcl/inc/aqua/salcolorutils.hxx
+++ /dev/null
@@ -1,45 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SV_SALCOLORUTILS_HXX
-#define _SV_SALCOLORUTILS_HXX
-
-#ifndef _LIMITS_H
-    #include <limits.h>
-#endif
-
-#include "premac.h"
-#include <ApplicationServices/ApplicationServices.h>
-#include "postmac.h"
-
-#include "vcl/salbtype.hxx"
-#include "vcl/salgtype.hxx"
-#include "salmathutils.hxx"
-
-// ------------------------------------------------------------------
-
-SalColor GetSalColor( const float* pQuartzColor );
-
-void SetSalColor( const SalColor& rColor, float* pQuartzColor );
-
-// ------------------------------------------------------------------
-
-#endif  // _SV_SALCOLORUTILS_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/aqua/salvd.h b/vcl/inc/aqua/salvd.h
index 987636f..51f5d41 100644
--- a/vcl/inc/aqua/salvd.h
+++ b/vcl/inc/aqua/salvd.h
@@ -24,7 +24,6 @@
 #include <ApplicationServices/ApplicationServices.h>
 #include "postmac.h"
 
-#include "aqua/salcolorutils.hxx"
 #include "aqua/salgdi.h"
 
 #include "salvd.hxx"
diff --git a/vcl/inc/ios/salcolorutils.hxx b/vcl/inc/ios/salcolorutils.hxx
deleted file mode 100644
index a66c9fa..0000000
--- a/vcl/inc/ios/salcolorutils.hxx
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _SV_SALCOLORUTILS_HXX
-#define _SV_SALCOLORUTILS_HXX
-
-#include "vcl/salbtype.hxx"
-#include "vcl/salgtype.hxx"
-#include "salmathutils.hxx"
-
-// ------------------------------------------------------------------
-
-SalColor GetSalColor( const float* pQuartzColor );
-
-void SetSalColor( const SalColor& rColor, float* pQuartzColor );
-
-// ------------------------------------------------------------------
-
-#endif  // _SV_SALCOLORUTILS_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/ios/salvd.h b/vcl/inc/ios/salvd.h
index 792b9d6..83c9d45 100644
--- a/vcl/inc/ios/salvd.h
+++ b/vcl/inc/ios/salvd.h
@@ -20,7 +20,6 @@
 #ifndef _SV_SALVD_H
 #define _SV_SALVD_H
 
-#include "ios/salcolorutils.hxx"
 #include "coretext/salgdi.h"
 
 #include "salvd.hxx"


More information about the Libreoffice-commits mailing list