cleanup: Remove rak::call_delete

This commit is contained in:
stickz
2025-01-11 21:22:40 -05:00
parent 4a074adc7b
commit 9c92bfc7e2
9 changed files with 9 additions and 27 deletions
+1 -2
View File
@@ -37,7 +37,6 @@
#include "config.h"
#include <algorithm>
#include <rak/functional.h>
#include "canvas.h"
#include "utils.h"
@@ -55,7 +54,7 @@ WindowText::WindowText(rpc::target_type target, extent_type margin) :
void
WindowText::clear() {
std::for_each(begin(), end(), rak::call_delete<TextElement>());
std::for_each(begin(), end(), [](TextElement* text) { delete text; });
base_type::clear();
delete m_errorHandler;