Author: cazfi
Date: Wed Nov 11 02:07:12 2015
New Revision: 30534

URL: http://svn.gna.org/viewcvs/freeciv?rev=30534&view=rev
Log:
Removed unused FIELD_RANGE_TEST() macro from dataio_json.c

See patch #6558

Modified:
    trunk/common/dataio_json.c

Modified: trunk/common/dataio_json.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/dataio_json.c?rev=30534&r1=30533&r2=30534&view=diff
==============================================================================
--- trunk/common/dataio_json.c  (original)
+++ trunk/common/dataio_json.c  Wed Nov 11 02:07:12 2015
@@ -71,26 +71,6 @@
 
 static DIO_GET_CONV_FUN get_conv_callback = get_conv;
 
-/* Uncomment to make field range tests to asserts, fatal with -F */
-/* #define FIELD_RANGE_ASSERT */
-
-#ifdef FIELD_RANGE_ASSERT
-/* This evaluates _test_ twice. If that's a problem,
- * it should evaluate it just once and store result to variable.
- * That would lose verbosity of the assert message. */
-#define FIELD_RANGE_TEST(_test_, _action_, _format_, ...) \
-  fc_assert(!(_test_));                                   \
-  if (_test_) {                                           \
-    _action_                                              \
-  }
-#else
-#define FIELD_RANGE_TEST(_test_, _action_, _format_, ...) \
-  if (_test_) {                                           \
-    _action_                                              \
-    log_error(_format_, ## __VA_ARGS__);                  \
-  }
-#endif
-
 /**************************************************************************
   Returns a CURL easy handle for name encoding and decoding
 **************************************************************************/


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to