diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index cc5949d44..88a7f2299 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -34,7 +34,6 @@ SET(common_sources memory_mapped_file.cpp misc.cpp misc_functions.cpp - moremath.cpp mutex.cpp mysql_request_result.cpp mysql_request_row.cpp @@ -147,7 +146,6 @@ SET(common_headers memory_mapped_file.h misc.h misc_functions.h - moremath.h mutex.h mysql_request_result.h mysql_request_row.h diff --git a/common/moremath.cpp b/common/moremath.cpp deleted file mode 100644 index bd8412458..000000000 --- a/common/moremath.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* EQEMu: Everquest Server Emulator - Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org) - - 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; version 2 of the License. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY except by those people which sell it, which - are required to give you total support for your newly bought product; - 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - -#include "types.h" - -// Quagmire - i was really surprised, but i couldnt find the equivilent standard library function -signed char sign(signed int tmp) { - if (tmp > 0) - return 1; - else if (tmp < 0) - return -1; - else - return 0; -} - -signed char sign(double tmp) { - if (tmp > 0) - return 1; - else if (tmp < 0) - return -1; - else - return 0; -} - -uint32 pow32(uint32 base, uint32 exponet) { - uint32 ret = 1; - for (uint32 i=1; i<=exponet; i++) - ret *= base; - return ret; -} - diff --git a/common/moremath.h b/common/moremath.h deleted file mode 100644 index 8f03bcea3..000000000 --- a/common/moremath.h +++ /dev/null @@ -1,28 +0,0 @@ -/* EQEMu: Everquest Server Emulator - Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org) - - 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; version 2 of the License. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY except by those people which sell it, which - are required to give you total support for your newly bought product; - 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -#ifndef MOREMATH_H -#define MOREMATH_H - -#include "types.h" - -signed char sign(signed int tmp); -signed char sign(double tmp); -uint32 pow32(uint32 base, uint32 exponet); - -#endif -