wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src util.hpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src util.hpp
Date: Sun, 26 Dec 2004 17:09:38 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/12/26 21:58:18

Modified files:
        src            : util.hpp 

Log message:
        Remove unused template function.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/util.hpp.diff?tr1=1.18&tr2=1.19&r1=text&r2=text

Patches:
Index: wesnoth/src/util.hpp
diff -u wesnoth/src/util.hpp:1.18 wesnoth/src/util.hpp:1.19
--- wesnoth/src/util.hpp:1.18   Sat Aug 28 21:16:17 2004
+++ wesnoth/src/util.hpp        Sun Dec 26 21:58:18 2004
@@ -1,4 +1,4 @@
-/* $Id: util.hpp,v 1.18 2004/08/28 21:16:17 gruikya Exp $ */
+/* $Id: util.hpp,v 1.19 2004/12/26 21:58:18 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -37,15 +37,6 @@
 template<typename T>
 inline bool is_even(T num) { return !is_odd(num); }
 
-//place in our own namespace as to not clash with possible
-//standard library definitions
-namespace util {
-
-template<typename T>
-T round(T n) { return floor(n + 0.5); }
-
-}
-
 struct bad_lexical_cast {};
 
 template<typename To, typename From>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]