mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
Spreadsheet: Remove unused Workbook::load() function
This commit is contained in:
parent
01824fd19a
commit
d877c2fcd6
Notes:
sideshowbarker
2024-07-17 11:30:54 +09:00
Author: https://github.com/krkk
Commit: d877c2fcd6
Pull-request: https://github.com/SerenityOS/serenity/pull/14085
Reviewed-by: https://github.com/kennethmyhra ✅
2 changed files with 0 additions and 16 deletions
|
@ -64,21 +64,6 @@ Result<bool, String> Workbook::open_file(Core::File& file)
|
|||
return true;
|
||||
}
|
||||
|
||||
Result<bool, String> Workbook::load(StringView filename)
|
||||
{
|
||||
auto response = FileSystemAccessClient::Client::the().try_request_file_read_only_approved(&m_parent_window, filename);
|
||||
if (response.is_error()) {
|
||||
StringBuilder sb;
|
||||
sb.append("Failed to open ");
|
||||
sb.append(filename);
|
||||
sb.append(" for reading. Error: ");
|
||||
sb.appendff("{}", response.error());
|
||||
return sb.to_string();
|
||||
}
|
||||
|
||||
return open_file(*response.value());
|
||||
}
|
||||
|
||||
Result<bool, String> Workbook::save(StringView filename)
|
||||
{
|
||||
auto mime = Core::guess_mime_type_based_on_filename(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue