mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Remove unused code to convert text resource format to binary
This is now handled in `ResourceSaver::save` when saving with a binary extension.
This commit is contained in:
@@ -87,11 +87,6 @@ class ResourceLoaderText {
|
||||
Error _parse_sub_resource(VariantParser::Stream *p_stream, Ref<Resource> &r_res, int &line, String &r_err_str);
|
||||
Error _parse_ext_resource(VariantParser::Stream *p_stream, Ref<Resource> &r_res, int &line, String &r_err_str);
|
||||
|
||||
// for converter
|
||||
class DummyResource : public Resource {
|
||||
public:
|
||||
};
|
||||
|
||||
struct DummyReadData {
|
||||
bool no_placeholders = false;
|
||||
HashMap<Ref<Resource>, int> external_resources;
|
||||
@@ -133,7 +128,6 @@ public:
|
||||
Error rename_dependencies(Ref<FileAccess> p_f, const String &p_path, const HashMap<String, String> &p_map);
|
||||
Error get_classes_used(HashSet<StringName> *r_classes);
|
||||
|
||||
Error save_as_binary(const String &p_path);
|
||||
ResourceLoaderText();
|
||||
};
|
||||
|
||||
@@ -152,8 +146,6 @@ public:
|
||||
virtual void get_dependencies(const String &p_path, List<String> *p_dependencies, bool p_add_types = false) override;
|
||||
virtual Error rename_dependencies(const String &p_path, const HashMap<String, String> &p_map) override;
|
||||
|
||||
static Error convert_file_to_binary(const String &p_src_path, const String &p_dst_path);
|
||||
|
||||
ResourceFormatLoaderText() { singleton = this; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user