FileManager: Remove unused lstat() call
This commit is contained in:
parent
61dc489778
commit
39c0f31009
Notes:
sideshowbarker
2024-07-17 11:12:32 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/39c0f31009 Pull-request: https://github.com/SerenityOS/serenity/pull/13948
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);
|
||||
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");
|
||||
|
|
Loading…
Add table
Reference in a new issue