Remove unused methods in ResourceLoader
This commit is contained in:
@ -1068,20 +1068,6 @@ void ResourceLoader::remove_resource_format_loader(Ref<ResourceFormatLoader> p_f
|
||||
--loader_count;
|
||||
}
|
||||
|
||||
int ResourceLoader::get_import_order(const String &p_path) {
|
||||
String local_path = _path_remap(_validate_local_path(p_path));
|
||||
|
||||
for (int i = 0; i < loader_count; i++) {
|
||||
if (!loader[i]->recognize_path(local_path)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return loader[i]->get_import_order(p_path);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
String ResourceLoader::get_import_group_file(const String &p_path) {
|
||||
String local_path = _path_remap(_validate_local_path(p_path));
|
||||
|
||||
@ -1201,21 +1187,6 @@ ResourceUID::ID ResourceLoader::get_resource_uid(const String &p_path) {
|
||||
return ResourceUID::INVALID_ID;
|
||||
}
|
||||
|
||||
bool ResourceLoader::has_custom_uid_support(const String &p_path) {
|
||||
String local_path = _validate_local_path(p_path);
|
||||
|
||||
for (int i = 0; i < loader_count; i++) {
|
||||
if (!loader[i]->recognize_path(local_path)) {
|
||||
continue;
|
||||
}
|
||||
if (loader[i]->has_custom_uid_support()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ResourceLoader::should_create_uid_file(const String &p_path) {
|
||||
const String local_path = _validate_local_path(p_path);
|
||||
if (FileAccess::exists(local_path + ".uid")) {
|
||||
|
||||
@ -244,14 +244,12 @@ public:
|
||||
static String get_resource_type(const String &p_path);
|
||||
static String get_resource_script_class(const String &p_path);
|
||||
static ResourceUID::ID get_resource_uid(const String &p_path);
|
||||
static bool has_custom_uid_support(const String &p_path);
|
||||
static bool should_create_uid_file(const String &p_path);
|
||||
static void get_dependencies(const String &p_path, List<String> *p_dependencies, bool p_add_types = false);
|
||||
static Error rename_dependencies(const String &p_path, const HashMap<String, String> &p_map);
|
||||
static bool is_import_valid(const String &p_path);
|
||||
static String get_import_group_file(const String &p_path);
|
||||
static bool is_imported(const String &p_path);
|
||||
static int get_import_order(const String &p_path);
|
||||
|
||||
static void set_is_import_thread(bool p_import_thread);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user