mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
3DFileViewer: Remove unnecessary tests when loading files
These tests are already performed by `LibFileSystemAccessClient`.
This commit is contained in:
parent
f9e3a591d2
commit
13b149b42e
1 changed files with 0 additions and 10 deletions
|
@ -308,16 +308,6 @@ bool GLContextWidget::load_file(Core::DeprecatedFile& file)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (file.is_device()) {
|
||||
GUI::MessageBox::show(window(), DeprecatedString::formatted("Opening \"{}\" failed: Can't open device files", filename), "Error"sv, GUI::MessageBox::Type::Error);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (file.is_directory()) {
|
||||
GUI::MessageBox::show(window(), DeprecatedString::formatted("Opening \"{}\" failed: Can't open directories", filename), "Error"sv, GUI::MessageBox::Type::Error);
|
||||
return false;
|
||||
}
|
||||
|
||||
auto new_mesh = m_mesh_loader->load(String::from_deprecated_string(file.filename()).release_value_but_fixme_should_propagate_errors(),
|
||||
Core::File::adopt_fd(file.leak_fd(), Core::File::OpenMode::Read).release_value_but_fixme_should_propagate_errors());
|
||||
if (new_mesh.is_error()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue