From 154df6b09d0c39ef9a9b1ee049251b645c13f559 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sun, 10 May 2020 17:16:38 +0100 Subject: Cleanup unneeded globals (#4736) --- Tools/GrownBiomeGenVisualiser/Globals.h | 52 --------------------------------- 1 file changed, 52 deletions(-) (limited to 'Tools/GrownBiomeGenVisualiser/Globals.h') diff --git a/Tools/GrownBiomeGenVisualiser/Globals.h b/Tools/GrownBiomeGenVisualiser/Globals.h index f062b4ccf..da4b5203c 100644 --- a/Tools/GrownBiomeGenVisualiser/Globals.h +++ b/Tools/GrownBiomeGenVisualiser/Globals.h @@ -16,54 +16,15 @@ // Disable some warnings that we don't care about: #pragma warning(disable:4100) - #define OBSOLETE __declspec(deprecated) - - // No alignment needed in MSVC - #define ALIGN_8 - #define ALIGN_16 - - #define NORETURN __declspec(noreturn) - #elif defined(__GNUC__) // TODO: Can GCC explicitly mark classes as abstract (no instances can be created)? #define abstract - // override is part of c++11 - #if __cplusplus < 201103L - #define override - #endif - - #define OBSOLETE __attribute__((deprecated)) - - #define ALIGN_8 __attribute__((aligned(8))) - #define ALIGN_16 __attribute__((aligned(16))) - - // Some portability macros :) - #define stricmp strcasecmp - - #define NORETURN __attribute((__noreturn__)) #else #error "You are using an unsupported compiler, you might need to #define some stuff here for your compiler" - /* - // Copy and uncomment this into another #elif section based on your compiler identification - - // Explicitly mark classes as abstract (no instances can be created) - #define abstract - - // Mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class) - #define override - - // Mark functions as obsolete, so that their usage results in a compile-time warning - #define OBSOLETE - - // Mark types / variables for alignment. Do the platforms need it? - #define ALIGN_8 - #define ALIGN_16 - */ - #endif @@ -214,19 +175,6 @@ typedef unsigned char Byte; -/** A generic interface used mainly in ForEach() functions */ -template class cItemCallback -{ -public: - /** Called for each item in the internal list; return true to stop the loop, or false to continue enumerating */ - virtual bool Item(Type * a_Type) = 0; - virtual ~cItemCallback() {} -} ; - - - - - /** Clamp X to the specified range. */ template T Clamp(T a_Value, T a_Min, T a_Max) -- cgit v1.2.3