Removed no longer needed check

This commit is contained in:
Juan Linietsky 2016-07-02 13:32:07 -03:00
parent 973a12c5f2
commit f9bd038ca7
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ Error DirAccessUnix::change_dir(String p_dir) {
chdir(current_dir.utf8().get_data()); //ascii since this may be unicode or wathever the host os wants
bool worked=(chdir(p_dir.utf8().get_data())==0); // we can only give this utf8
#ifndef IPHONE_ENABLED
String base = _get_root_path();
if (base!="") {
@ -258,7 +258,7 @@ Error DirAccessUnix::change_dir(String p_dir) {
if (!new_dir.begins_with(base))
worked=false;
}
#endif
if (worked) {
getcwd(real_current_dir_name,2048);