From d74c554ce210d1242b4d67d8597d2e0b04a474c2 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 19 Jul 2020 12:54:19 +0200 Subject: [PATCH] Time: remove unused sourcefiles. --- src/preferences/time/Bitmaps.cpp | 33 --------------------- src/preferences/time/Bitmaps.h | 50 -------------------------------- src/preferences/time/Jamfile | 1 - 3 files changed, 84 deletions(-) delete mode 100644 src/preferences/time/Bitmaps.cpp delete mode 100644 src/preferences/time/Bitmaps.h diff --git a/src/preferences/time/Bitmaps.cpp b/src/preferences/time/Bitmaps.cpp deleted file mode 100644 index b4d348d25e..0000000000 --- a/src/preferences/time/Bitmaps.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2004-2007, Haiku, Inc. All Rights Reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * Andrew McCall - * Mike Berg - * Julun - * - */ - -#include "Bitmaps.h" - - -#include -#include - - -void -ReplaceTransparentColor(BBitmap* bitmap, rgb_color with) -{ - // other color spaces not implemented yet - ASSERT(bitmap->ColorSpace() == B_COLOR_8_BIT); - - BScreen screen(B_MAIN_SCREEN_ID); - uint32 withIndex = screen.IndexForColor(with); - - uchar* bits = (uchar*)bitmap->Bits(); - int32 bitsLength = bitmap->BitsLength(); - for (int32 index = 0; index < bitsLength; index++) - if (bits[index] == B_TRANSPARENT_8_BIT) - bits[index] = withIndex; -} diff --git a/src/preferences/time/Bitmaps.h b/src/preferences/time/Bitmaps.h deleted file mode 100644 index 785954f348..0000000000 --- a/src/preferences/time/Bitmaps.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2004-2010, Haiku, Inc. All Rights Reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * Andrew McCall - * Mike Berg - * Julun - * - */ -#ifndef _BITMAPS_H -#define _BITMAPS_H - - -#include - - -void ReplaceTransparentColor(BBitmap* bitmap, rgb_color with); - -const int32 kUpArrowWidth = 16; -const int32 kUpArrowHeight = 7; -const color_space kUpArrowColorSpace = B_CMAP8; - -const unsigned char kUpArrowBits [] = { - 0xff,0xff,0xff,0xff,0x13,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0xff,0xff,0x13,0x1e,0x13,0xff,0xff,0xff,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0xff,0x13,0x1e,0xff,0x18,0x13,0xff,0xff,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0x13,0x1e,0xff,0xff,0xff,0x18,0x13,0xff,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0x13,0x1e,0x18,0x18,0x18,0x18,0x18,0x18,0x0b,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0x13,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x13,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0xff,0xff,0x18,0x3f,0xff,0xff -}; - -const int32 kDownArrowWidth = 16; -const int32 kDownArrowHeight = 7; -const color_space kDownArrowColorSpace = B_CMAP8; - -const unsigned char kDownArrowBits [] = { - 0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x0b,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0x13,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x16,0x0b,0x13,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0x13,0xff,0xff,0xff,0xff,0x16,0x0b,0x13,0x13,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0xff,0x13,0xff,0xff,0x16,0x0b,0x13,0x13,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0xff,0xff,0x13,0x16,0x0b,0x13,0x13,0xff,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0xff,0xff,0xff,0x0b,0x13,0x13,0xff,0xff,0xff,0xff,0xff,0x18,0x3f,0xff,0xff, - 0xff,0xff,0xff,0xff,0xff,0x13,0xff,0xff,0xff,0xff,0xff,0xff,0x18,0x3f,0xff,0xff -}; - - -#endif // _BITMAPS_H - diff --git a/src/preferences/time/Jamfile b/src/preferences/time/Jamfile index b7dd0406ec..7c775aff95 100644 --- a/src/preferences/time/Jamfile +++ b/src/preferences/time/Jamfile @@ -7,7 +7,6 @@ UseBuildFeatureHeaders icu ; local sources = AnalogClock.cpp BaseView.cpp - Bitmaps.cpp ClockView.cpp DateTimeEdit.cpp SectionEdit.cpp