mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +00:00
LibThreading: Remove redundant method
This commit is contained in:
parent
17d95bc1db
commit
59619572d6
6 changed files with 6 additions and 13 deletions
|
@ -652,7 +652,7 @@ bool FileSystemModel::fetch_thumbnail_for(Node const& node)
|
|||
|
||||
auto weak_this = make_weak_ptr();
|
||||
|
||||
Threading::BackgroundAction<RefPtr<Gfx::Bitmap>>::create(
|
||||
Threading::BackgroundAction<RefPtr<Gfx::Bitmap>>::construct(
|
||||
[path](auto&) {
|
||||
return render_thumbnail(path);
|
||||
},
|
||||
|
|
|
@ -38,13 +38,6 @@ class BackgroundAction final : public Core::Object
|
|||
C_OBJECT(BackgroundAction);
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<BackgroundAction<Result>> create(
|
||||
Function<Result(BackgroundAction&)> action,
|
||||
Function<void(Result)> on_complete = nullptr)
|
||||
{
|
||||
return adopt_ref(*new BackgroundAction(move(action), move(on_complete)));
|
||||
}
|
||||
|
||||
void cancel()
|
||||
{
|
||||
m_cancelled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue