Remove DECLARE_TYPEOF

It is no longer needed since C++11
This commit is contained in:
Twan van Laarhoven
2020-04-26 00:51:16 +02:00
parent 5e92d9455c
commit 4327abb803
92 changed files with 0 additions and 281 deletions
-3
View File
@@ -12,9 +12,6 @@
#include <util/error.hpp>
#include <queue>
DECLARE_TYPEOF_COLLECTION(ScriptValueP);
DECLARE_TYPEOF_COLLECTION(Context::Binding);
// NOTE: dependency.cpp has nothing to do with dependency.hpp, the latter defines the dependency
// type, which is used here as an abstract type. The header for this source file is context.hpp
-2
View File
@@ -18,8 +18,6 @@
#include <data/game.hpp>
#include <random>
DECLARE_TYPEOF_COLLECTION(pair<String COMMA ScriptValueP>);
// ----------------------------------------------------------------------------- : Debugging
SCRIPT_FUNCTION(trace) {
-6
View File
@@ -19,12 +19,6 @@
#include <data/field/multiple_choice.hpp>
#include <data/action/value.hpp>
DECLARE_TYPEOF_COLLECTION(FieldP);
DECLARE_TYPEOF_COLLECTION(TextValue*);
DECLARE_TYPEOF_COLLECTION(String);
DECLARE_TYPEOF_COLLECTION(pair<String COMMA bool>);
DECLARE_TYPEOF_COLLECTION(ChoiceField::ChoiceP);
// ----------------------------------------------------------------------------- : Combined editor
// Combining multiple (text) values into a single one
-4
View File
@@ -21,8 +21,6 @@
#include <wx/wfstream.h>
#include <wx/filename.h>
DECLARE_TYPEOF_COLLECTION(SymbolFont::DrawableSymbol);
// ----------------------------------------------------------------------------- : Utility
// Make sure we can export files to a data directory
@@ -87,8 +85,6 @@ struct NegTag {
NegTag(Tag* tag, bool neg) : tag(tag), neg(neg) {}
};
DECLARE_TYPEOF_COLLECTION(NegTag);
/// A stack of opened HTML tags
class TagStack {
public:
-2
View File
@@ -19,8 +19,6 @@
#include <gfx/generated_image.hpp>
#include <render/symbol/filter.hpp>
DECLARE_TYPEOF_COLLECTION(SymbolVariationP);
void parse_enum(const String&, ImageCombine& out);
// ----------------------------------------------------------------------------- : Utility
-1
View File
@@ -13,7 +13,6 @@
#include <util/error.hpp>
DECLARE_POINTER_TYPE(ScriptRegex);
DECLARE_TYPEOF_COLLECTION(pair<Variable COMMA ScriptValueP>);
// ----------------------------------------------------------------------------- : Regex type
-2
View File
@@ -14,8 +14,6 @@
#include <util/io/package_manager.hpp> // for "include file" semi hack
#include <stack>
DECLARE_TYPEOF_COLLECTION(Variable);
#ifdef __WXMSW__
#define TokenType TokenType_ // some stupid windows header uses our name
#endif
-2
View File
@@ -16,8 +16,6 @@
#error "It looks like you are building the final release; disable USE_SCRIPT_PROFILING!"
#endif
DECLARE_TYPEOF(map<size_t COMMA FunctionProfileP>);
// ----------------------------------------------------------------------------- : Timer
Timer::Timer() {
-3
View File
@@ -16,7 +16,6 @@
typedef map<String, Variable> Variables;
Variables variables;
DECLARE_TYPEOF(Variables);
#ifdef _DEBUG
vector<String> variable_names;
#endif
@@ -148,8 +147,6 @@ unsigned int Script::getLabel() const {
return (unsigned int)instructions.size();
}
DECLARE_TYPEOF_COLLECTION(Instruction);
#ifdef _DEBUG // debugging
String Script::dumpScript() const {
-2
View File
@@ -17,8 +17,6 @@
Alignment from_string(const String&);
void parse_enum(const String&,Direction&);
DECLARE_TYPEOF_COLLECTION(ScriptParseError);
// ----------------------------------------------------------------------------- : Store
void store(const ScriptValueP& val, String& var) { var = val->toString(); }
-2
View File
@@ -14,8 +14,6 @@
#include <util/error.hpp>
#include <boost/pool/singleton_pool.hpp>
DECLARE_TYPEOF_COLLECTION(pair<Variable COMMA ScriptValueP>);
// ----------------------------------------------------------------------------- : ScriptValue
// Base cases