Kaydet (Commit) 63a66e57 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

SetSalColor() and GetSalColor() are unused

Change-Id: I1d33abe2e2ccb6d62895da70da89fbbaa0c3b426
üst 74f249ff
...@@ -444,7 +444,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ ...@@ -444,7 +444,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/aqua/source/dtrans/aqua_clipboard \ vcl/aqua/source/dtrans/aqua_clipboard \
vcl/aqua/source/dtrans/service_entry \ vcl/aqua/source/dtrans/service_entry \
vcl/quartz/salbmp \ vcl/quartz/salbmp \
vcl/aqua/source/gdi/salcolorutils \
vcl/aqua/source/gdi/salgdicommon \ vcl/aqua/source/gdi/salgdicommon \
vcl/aqua/source/gdi/salgdiutils \ vcl/aqua/source/gdi/salgdiutils \
vcl/aqua/source/gdi/salmathutils \ vcl/aqua/source/gdi/salmathutils \
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "aqua/atsui/salgdi.h" #include "aqua/atsui/salgdi.h"
#include "aqua/salframe.h" #include "aqua/salframe.h"
#include "aqua/salcolorutils.hxx"
#include "aqua/atsui/salatsuifontutils.hxx" #include "aqua/atsui/salatsuifontutils.hxx"
#include "fontsubset.hxx" #include "fontsubset.hxx"
......
/* -*- 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: */
/* -*- 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: */
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <ApplicationServices/ApplicationServices.h> #include <ApplicationServices/ApplicationServices.h>
#include "postmac.h" #include "postmac.h"
#include "aqua/salcolorutils.hxx"
#include "aqua/salgdi.h" #include "aqua/salgdi.h"
#include "salvd.hxx" #include "salvd.hxx"
......
/* -*- 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: */
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef _SV_SALVD_H #ifndef _SV_SALVD_H
#define _SV_SALVD_H #define _SV_SALVD_H
#include "ios/salcolorutils.hxx"
#include "coretext/salgdi.h" #include "coretext/salgdi.h"
#include "salvd.hxx" #include "salvd.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment