From: Marco Costalba Date: Wed, 4 Feb 2009 16:12:21 +0000 (+0100) Subject: Remove the useless color.cpp X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=8bef9e59a0f1f02a9377445243f538231c573c75;ds=sidebyside Remove the useless color.cpp Integrate the only (inline) function in color.h Signed-off-by: Marco Costalba --- diff --git a/src/color.cpp b/src/color.cpp deleted file mode 100644 index 6d837e7b..00000000 --- a/src/color.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - Stockfish, a UCI chess playing engine derived from Glaurung 2.1 - Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008 Marco Costalba - - Stockfish is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Stockfish is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - - -//// -//// Includes -//// - -#include "color.h" - - -//// -//// Functions -//// - -/// color_is_ok(), for debugging: - -bool color_is_ok(Color c) { - return c == WHITE || c == BLACK; -} diff --git a/src/color.h b/src/color.h index f27b14eb..81ba55c1 100644 --- a/src/color.h +++ b/src/color.h @@ -50,12 +50,8 @@ inline Color opposite_color(Color c) { return Color(int(c) ^ 1); } - -//// -//// Prototypes -//// - -extern bool color_is_ok(Color c); - +inline bool color_is_ok(Color c) { + return c == WHITE || c == BLACK; +} #endif // !defined(COLOR_H_INCLUDED)