Remove or make private FileAccess close() methods.
This commit is contained in:
@ -71,10 +71,7 @@ void FileAccessUnix::check_errors() const {
|
||||
}
|
||||
|
||||
Error FileAccessUnix::_open(const String &p_path, int p_mode_flags) {
|
||||
if (f) {
|
||||
fclose(f);
|
||||
}
|
||||
f = nullptr;
|
||||
_close();
|
||||
|
||||
path_src = p_path;
|
||||
path = fix_path(p_path);
|
||||
@ -148,7 +145,7 @@ Error FileAccessUnix::_open(const String &p_path, int p_mode_flags) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
void FileAccessUnix::close() {
|
||||
void FileAccessUnix::_close() {
|
||||
if (!f) {
|
||||
return;
|
||||
}
|
||||
@ -343,7 +340,7 @@ Ref<FileAccess> FileAccessUnix::create_libc() {
|
||||
CloseNotificationFunc FileAccessUnix::close_notification_func = nullptr;
|
||||
|
||||
FileAccessUnix::~FileAccessUnix() {
|
||||
close();
|
||||
_close();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user