mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +00:00
Remove redundant reset
.
This commit is contained in:
parent
e994910ff6
commit
9d278d80f1
@ -96,7 +96,6 @@ void DeferringAsyncTaskQueue::defer(std::function<void(void)> function) {
|
||||
void DeferringAsyncTaskQueue::perform() {
|
||||
if(!deferred_tasks_) return;
|
||||
auto deferred_tasks_raw = deferred_tasks_.release();
|
||||
deferred_tasks_.reset();
|
||||
enqueue([deferred_tasks_raw] {
|
||||
std::unique_ptr<std::list<std::function<void(void)>>> deferred_tasks(deferred_tasks_raw);
|
||||
for(const auto &function : *deferred_tasks) {
|
||||
|
Loading…
Reference in New Issue
Block a user