From c093f4cce643e245ab2048e0782237744208eb9f Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 24 Apr 2014 16:13:40 -0700 Subject: Header cleanup --- src/compat/alg.cpp | 21 --------------------- src/compat/alg.hpp | 41 ----------------------------------------- src/compat/iter_test.cpp | 4 ++-- src/compat/memory.hpp | 1 + 4 files changed, 3 insertions(+), 64 deletions(-) delete mode 100644 src/compat/alg.cpp delete mode 100644 src/compat/alg.hpp (limited to 'src/compat') diff --git a/src/compat/alg.cpp b/src/compat/alg.cpp deleted file mode 100644 index 8cfd00a..0000000 --- a/src/compat/alg.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "alg.hpp" -// alg.cpp - Silly math stuff. -// -// Copyright © 2012 Ben Longbons -// -// This file is part of The Mana World (Athena server) -// -// This program 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. -// -// This program 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 . - -#include "../poison.hpp" diff --git a/src/compat/alg.hpp b/src/compat/alg.hpp deleted file mode 100644 index 2587f9e..0000000 --- a/src/compat/alg.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef TMWA_COMPAT_ALG_HPP -#define TMWA_COMPAT_ALG_HPP -// alg.hpp - Silly math stuff. -// -// Copyright © 2012 Ben Longbons -// -// This file is part of The Mana World (Athena server) -// -// This program 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. -// -// This program 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 . - -# include "fwd.hpp" - -# if 0 -# include - - -template -typename std::common_type::type min(A a, B b) -{ - return a < b ? a : b; -} - -template -typename std::common_type::type max(A a, B b) -{ - return b < a ? a : b; -} -# endif - -#endif // TMWA_COMPAT_ALG_HPP diff --git a/src/compat/iter_test.cpp b/src/compat/iter_test.cpp index 99b2e68..2c3cdc8 100644 --- a/src/compat/iter_test.cpp +++ b/src/compat/iter_test.cpp @@ -20,9 +20,9 @@ #include -#include "../ints/udl.hpp" +#include -#include "../strings/xstring.hpp" +#include "../ints/udl.hpp" #include "../poison.hpp" diff --git a/src/compat/memory.hpp b/src/compat/memory.hpp index 8cafcb4..3a2af96 100644 --- a/src/compat/memory.hpp +++ b/src/compat/memory.hpp @@ -22,6 +22,7 @@ # include "fwd.hpp" # include +# include template -- cgit v1.2.3-70-g09d2