1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +00:00

LibThreading: Remove redundant method

This commit is contained in:
Ben Wiederhake 2021-11-01 23:39:10 +01:00 committed by Andreas Kling
parent 17d95bc1db
commit 59619572d6
6 changed files with 6 additions and 13 deletions

View file

@ -132,7 +132,7 @@ void FileProvider::query(const String& query, Function<void(NonnullRefPtrVector<
if (m_fuzzy_match_work)
m_fuzzy_match_work->cancel();
m_fuzzy_match_work = Threading::BackgroundAction<NonnullRefPtrVector<Result>>::create(
m_fuzzy_match_work = Threading::BackgroundAction<NonnullRefPtrVector<Result>>::construct(
[this, query](auto& task) {
NonnullRefPtrVector<Result> results;
@ -163,7 +163,7 @@ void FileProvider::build_filesystem_cache()
m_building_cache = true;
m_work_queue.enqueue("/");
Threading::BackgroundAction<int>::create(
Threading::BackgroundAction<int>::construct(
[this](auto&) {
String slash = "/";
auto timer = Core::ElapsedTimer::start_new();