summaryrefslogtreecommitdiff
path: root/Runner/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'Runner/Utilities')
-rw-r--r--Runner/Utilities/Assert.h8
-rw-r--r--Runner/Utilities/Base64.cpp0
-rw-r--r--Runner/Utilities/Base64.h0
-rw-r--r--Runner/Utilities/Exception.h6
-rw-r--r--Runner/Utilities/NonCopyable.h14
-rw-r--r--Runner/Utilities/Singleton.h45
-rw-r--r--Runner/Utilities/Type.h21
-rw-r--r--Runner/Utilities/UIDGenerator.h20
-rw-r--r--Runner/Utilities/Utf8.cpp0
-rw-r--r--Runner/Utilities/Utf8.h0
-rw-r--r--Runner/Utilities/UtilMacros.h16
11 files changed, 0 insertions, 130 deletions
diff --git a/Runner/Utilities/Assert.h b/Runner/Utilities/Assert.h
deleted file mode 100644
index aab7b73..0000000
--- a/Runner/Utilities/Assert.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef ASSERT_H
-#define ASSERT_H
-
-#include <assert.h>
-
-#define Assert(c) assert(c)
-
-#endif \ No newline at end of file
diff --git a/Runner/Utilities/Base64.cpp b/Runner/Utilities/Base64.cpp
deleted file mode 100644
index e69de29..0000000
--- a/Runner/Utilities/Base64.cpp
+++ /dev/null
diff --git a/Runner/Utilities/Base64.h b/Runner/Utilities/Base64.h
deleted file mode 100644
index e69de29..0000000
--- a/Runner/Utilities/Base64.h
+++ /dev/null
diff --git a/Runner/Utilities/Exception.h b/Runner/Utilities/Exception.h
deleted file mode 100644
index bd73c6b..0000000
--- a/Runner/Utilities/Exception.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef EXCEPTION_H
-#define EXCEPTION_H
-
-
-
-#endif \ No newline at end of file
diff --git a/Runner/Utilities/NonCopyable.h b/Runner/Utilities/NonCopyable.h
deleted file mode 100644
index 7135827..0000000
--- a/Runner/Utilities/NonCopyable.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef NON_COPYABLE_H
-#define NON_COPYABLE_H
-
-class NonCopyable
-{
-public:
- NonCopyable() {}
-
-private:
- NonCopyable(const NonCopyable&);
- NonCopyable& operator=(const NonCopyable&);
-};
-
-#endif
diff --git a/Runner/Utilities/Singleton.h b/Runner/Utilities/Singleton.h
deleted file mode 100644
index 65c9e60..0000000
--- a/Runner/Utilities/Singleton.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef SINGLETON_H
-#define SINGLETON_H
-
-template<class T>
-class Singleton
-{
-public:
-
- static T* Instance()
- {
- if (!instance) instance = new T;
- return instance;
- }
-
- static void Destroy()
- {
- delete instance;
- instance = nullptr;
- }
-
-protected:
-
- Singleton()
- {
- instance = static_cast<T*>(this);
- };
-
- virtual ~Singleton() {};
-
- static T* instance;
-
-private:
-
- Singleton(const Singleton& singleton);
-
- Singleton& operator = (const Singleton& singleton);
-
-};
-
-template<class T>
-T* Singleton<T>::instance = nullptr;
-
-#define Get(T) T::Instance()
-
-#endif \ No newline at end of file
diff --git a/Runner/Utilities/Type.h b/Runner/Utilities/Type.h
deleted file mode 100644
index b3d0826..0000000
--- a/Runner/Utilities/Type.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#ifndef TYPE_H
-#define TYPE_H
-
-#include <cstdlib>
-#include <stdint.h>
-
-typedef int8_t int8;
-typedef uint8_t uint8;
-typedef unsigned char byte;
-typedef char sbyte;
-typedef int16_t int16;
-typedef uint16_t uint16;
-typedef int32_t int32;
-typedef uint32_t uint32;
-typedef int64_t int64;
-typedef uint64_t uint64;
-
-typedef uint32_t uint;
-typedef int32_t sint;
-
-#endif \ No newline at end of file
diff --git a/Runner/Utilities/UIDGenerator.h b/Runner/Utilities/UIDGenerator.h
deleted file mode 100644
index 81918f0..0000000
--- a/Runner/Utilities/UIDGenerator.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef UID_GENERATOR_H
-#define UID_GENERATOR_H
-
-class UIDGenerator
-{
-public:
- UIDGenerator(int from = 0)
- : m_Index(from)
- {
- };
- ~UIDGenerator(){};
-
- int GenUID(){return m_Index++;};
-
-private:
- int m_Index;
-
-};
-
-#endif \ No newline at end of file
diff --git a/Runner/Utilities/Utf8.cpp b/Runner/Utilities/Utf8.cpp
deleted file mode 100644
index e69de29..0000000
--- a/Runner/Utilities/Utf8.cpp
+++ /dev/null
diff --git a/Runner/Utilities/Utf8.h b/Runner/Utilities/Utf8.h
deleted file mode 100644
index e69de29..0000000
--- a/Runner/Utilities/Utf8.h
+++ /dev/null
diff --git a/Runner/Utilities/UtilMacros.h b/Runner/Utilities/UtilMacros.h
deleted file mode 100644
index 1941d7f..0000000
--- a/Runner/Utilities/UtilMacros.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef UTIL_MACROS_H
-#define UTIL_MACROS_H
-
-#define GET_SET(TYPE,PROP,VAR) \
- inline void Set##PROP (TYPE val) { VAR = val; } \
- inline TYPE Get##PROP () {return VAR; }
-
-#define GET(TYPE, PROP, VAR) \
- inline TYPE Get##PROP () const {return VAR; }
-
-#define SET(TYPE, PROP, VAR) \
- inline void Set##PROP (TYPE val) { VAR = val; } \
-
-#define Mask(v) (1 << v)
-
-#endif \ No newline at end of file