mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
FileManager: Remove unused lstat() call
This commit is contained in:
parent
61dc489778
commit
39c0f31009
1 changed files with 0 additions and 6 deletions
|
@ -1076,12 +1076,6 @@ ErrorOr<int> run_in_windowed_mode(String const& initial_location, String const&
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct stat st;
|
|
||||||
if (lstat(new_path.characters(), &st)) {
|
|
||||||
perror("stat");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
mkdir_action->set_enabled(can_write_in_path);
|
mkdir_action->set_enabled(can_write_in_path);
|
||||||
touch_action->set_enabled(can_write_in_path);
|
touch_action->set_enabled(can_write_in_path);
|
||||||
paste_action->set_enabled(can_write_in_path && GUI::Clipboard::the().fetch_mime_type() == "text/uri-list");
|
paste_action->set_enabled(can_write_in_path && GUI::Clipboard::the().fetch_mime_type() == "text/uri-list");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue