From 57b6db8b2a24e7303b79ea5439df655317af0196 Mon Sep 17 00:00:00 2001
From: mark9064 <30447455+mark9064@users.noreply.github.com>
Date: Fri, 18 Oct 2024 00:05:30 +0100
Subject: [PATCH] Remove OnTouchEvent

---
 src/main.cpp                  | 2 +-
 src/systemtask/SystemTask.cpp | 4 ----
 src/systemtask/SystemTask.h   | 2 --
 3 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index 84f30eeffc..24f13caddd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -168,7 +168,7 @@ std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> NoI
 
 void nrfx_gpiote_evt_handler(nrfx_gpiote_pin_t pin, nrf_gpiote_polarity_t action) {
   if (pin == Pinetime::PinMap::Cst816sIrq) {
-    systemTask.OnTouchEvent();
+    systemTask.PushMessage(Pinetime::System::Messages::OnTouchEvent);
     return;
   }
 
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index ed0fd7446c..eb013d6d1a 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -493,10 +493,6 @@ void SystemTask::HandleButtonAction(Controllers::ButtonActions action) {
   fastWakeUpDone = false;
 }
 
-void SystemTask::OnTouchEvent() {
-  PushMessage(Messages::OnTouchEvent);
-}
-
 void SystemTask::PushMessage(System::Messages msg) {
   if (in_isr()) {
     BaseType_t xHigherPriorityTaskWoken = pdFALSE;
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h
index 752c5611dc..0060e36096 100644
--- a/src/systemtask/SystemTask.h
+++ b/src/systemtask/SystemTask.h
@@ -77,8 +77,6 @@ namespace Pinetime {
       void Start();
       void PushMessage(Messages msg);
 
-      void OnTouchEvent();
-
       bool IsSleepDisabled() {
         return wakeLocksHeld > 0;
       }