summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/tasks.cpp14
-rw-r--r--src/tasks/tasks.hpp2
2 files changed, 0 insertions, 16 deletions
diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp
index 0d9d7881..f76c32a1 100644
--- a/src/tasks/tasks.cpp
+++ b/src/tasks/tasks.cpp
@@ -22,10 +22,6 @@ auto Name<Type::kAudio>() -> std::string {
return "AUDIO";
}
template <>
-auto Name<Type::kAudioDrain>() -> std::string {
- return "DRAIN";
-}
-template <>
auto Name<Type::kDatabase>() -> std::string {
return "DB";
}
@@ -41,12 +37,6 @@ auto AllocateStack<Type::kAudio>() -> cpp::span<StackType_t> {
return {static_cast<StackType_t*>(heap_caps_malloc(size, MALLOC_CAP_DEFAULT)),
size};
}
-template <>
-auto AllocateStack<Type::kAudioDrain>() -> cpp::span<StackType_t> {
- std::size_t size = 1024;
- return {static_cast<StackType_t*>(heap_caps_malloc(size, MALLOC_CAP_DEFAULT)),
- size};
-}
// LVGL requires only a relatively small stack. However, it can be allocated in
// PSRAM so we give it a bit of headroom for safety.
template <>
@@ -88,10 +78,6 @@ template <>
auto Priority<Type::kAudio>() -> UBaseType_t {
return 10;
}
-template <>
-auto Priority<Type::kAudioDrain>() -> UBaseType_t {
- return 10;
-}
// After audio issues, UI jank is the most noticeable kind of scheduling-induced
// slowness that the user is likely to notice or care about. Therefore we place
// this task directly below audio in terms of priority.
diff --git a/src/tasks/tasks.hpp b/src/tasks/tasks.hpp
index 9f37131e..993e52bf 100644
--- a/src/tasks/tasks.hpp
+++ b/src/tasks/tasks.hpp
@@ -28,8 +28,6 @@ enum class Type {
kUiFlush,
// The main audio pipeline task.
kAudio,
- // Task for flushing PCM samples to the current output.
- kAudioDrain,
// Task for running database queries.
kDatabase,
};