Removed unused code from macros.h.

Thu, 23 Feb 2017 18:38:30 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 23 Feb 2017 18:38:30 +0200
changeset 1152
a66d943591d8
parent 1151
0eddb5bcf25b
child 1153
ef475e07482e

Removed unused code from macros.h.

src/macros.h file | annotate | diff | comparison | revisions
--- a/src/macros.h	Mon Feb 20 07:56:21 2017 +0200
+++ b/src/macros.h	Thu Feb 23 18:38:30 2017 +0200
@@ -17,7 +17,6 @@
  */
 
 #pragma once
-#include <type_traits>
 
 #ifndef __GNUC__
 # define __attribute__(X)
@@ -36,9 +35,6 @@
 # define DIRSLASH_CHAR '/'
 #endif // WIN32
 
-#define printValueOf(A) dprint ("value of '%1' = %2\n", #A, A)
-#define for_axes(AX) for (const Axis AX : std::initializer_list<const Axis> ({X, Y, Z}))
-
 #define MAKE_ITERABLE_ENUM(T) \
 	template<> \
 	struct EnumLimits<T> \
@@ -52,8 +48,3 @@
 
 template<typename T>
 struct EnumLimits {};
-
-#define DEFINE_FLAG_ACCESS_METHODS(FLAGS) \
-	bool checkFlag(decltype(FLAGS) flag) const { return !!(FLAGS & flag); } \
-	void setFlag(decltype(FLAGS) flag) { FLAGS |= flag; } \
-	void unsetFlag(decltype(FLAGS) flag) { FLAGS &= ~flag; }

mercurial