diff options
author | Leon Krause <lk@leonkrause.com> | 2017-11-13 21:46:57 +0100 |
---|---|---|
committer | Leon Krause <lk@leonkrause.com> | 2017-11-14 15:15:13 +0100 |
commit | 9b7b46143d2df7d4f2efcb89ceb5034c7a57e79c (patch) | |
tree | 8ceadc6a5891c5f3205b0e23d5b7dd6ef3d40e1f /core/project_settings.h | |
parent | 3732b2318e8a4942e8202f1797527220a5ae01a0 (diff) |
Move singleton management from ProjectSettings to Engine
Diffstat (limited to 'core/project_settings.h')
-rw-r--r-- | core/project_settings.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core/project_settings.h b/core/project_settings.h index f75cad815f..1c4078cebb 100644 --- a/core/project_settings.h +++ b/core/project_settings.h @@ -45,14 +45,6 @@ class ProjectSettings : public Object { public: typedef Map<String, Variant> CustomMap; - struct Singleton { - StringName name; - Object *ptr; - Singleton(const StringName &p_name = StringName(), Object *p_ptr = NULL) - : name(p_name), - ptr(p_ptr) { - } - }; enum { //properties that are not for built in values begin from this value, so builtin ones are displayed first NO_BUILTIN_ORDER_BASE = 1 << 16 @@ -106,9 +98,6 @@ protected: Error _save_settings_text(const String &p_file, const Map<String, List<String> > &props, const CustomMap &p_custom = CustomMap(), const String &p_custom_features = String()); Error _save_settings_binary(const String &p_file, const Map<String, List<String> > &props, const CustomMap &p_custom = CustomMap(), const String &p_custom_features = String()); - List<Singleton> singletons; - Map<StringName, Object *> singleton_ptrs; - Error _save_custom_bnd(const String &p_file); bool _load_resource_pack(const String &p_pack); @@ -145,17 +134,11 @@ public: Error save(); void set_custom_property_info(const String &p_prop, const PropertyInfo &p_info); - void add_singleton(const Singleton &p_singleton); - void get_singletons(List<Singleton> *p_singletons); - - bool has_singleton(const String &p_name) const; - Vector<String> get_optimizer_presets() const; List<String> get_input_presets() const { return input_presets; } void set_disable_feature_overrides(bool p_disable); - Object *get_singleton_object(const String &p_name) const; void register_global_defaults(); |