mail[Wesnoth-commits] r33999 - /trunk/src/addon_checks.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by shadowm2006 on March 21, 2009 - 20:48:
Author: shadowmaster
Date: Sat Mar 21 20:48:15 2009
New Revision: 33999

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33999&view=rev
Log:
Remove dead code.

Modified:
    trunk/src/addon_checks.hpp

Modified: trunk/src/addon_checks.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/addon_checks.hpp?rev=33999&r1=33998&r2=33999&view=diff
==============================================================================
--- trunk/src/addon_checks.hpp (original)
+++ trunk/src/addon_checks.hpp Sat Mar 21 20:48:15 2009
@@ -20,13 +20,6 @@
 #include <string>
 
 class config;
-
-/** Values used for the directory scans */
-enum ADDON_GROUP {
-       ADDON_SINGLEPLAYER,     /**< (userdir)/data/campaigns */
-       ADDON_MULTIPLAYER,      /**< (userdir)/data/multiplayer */
-       ADDON_ALL                       /**< all of the above. */
-};
 
 /**
  * Values used for add-on classification; UI-only
@@ -51,15 +44,6 @@
 
 ADDON_TYPE get_addon_type(const std::string& str);
 
-inline ADDON_GROUP is_addon_sp_or_mp(ADDON_TYPE t)
-{
-       return (t == ADDON_MP_CAMPAIGN ||
-               t == ADDON_MP_SCENARIO ||
-               t == ADDON_MP_ERA ||
-               t == ADDON_MP_MAPS ||
-               t == ADDON_MP_FACTION) ? ADDON_MULTIPLAYER : 
ADDON_SINGLEPLAYER;
-}
-
 /** Checks whether an add-on name is legal or not. */
 bool addon_name_legal(const std::string& name);
 /** Probes an add-on archive for illegal names. */




Related Messages


Powered by MHonArc, Updated Sat Mar 21 21:00:38 2009