InfiniTime.git

commit 57b6db8b2a24e7303b79ea5439df655317af0196

Author: mark9064 <30447455+mark9064@users.noreply.github.com>

Remove OnTouchEvent

 src/main.cpp | 2 +-
 src/systemtask/SystemTask.cpp | 4 ----
 src/systemtask/SystemTask.h | 2 --


diff --git a/src/main.cpp b/src/main.cpp
index 84f30eeffcbb8290eb5f6ad7b8cad8df2ee11ed3..24f13caddd93090e2bc0a1ab9cbb20c1afc14ec3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -168,7 +168,7 @@ std::chrono::time_point NoInit_BackUpTime __attribute__((section(".noinit")));
 
 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 ed0fd7446c01fdda53228375c9e3f52b20cb1ea9..eb013d6d1a58c87985d7b278afc035678074c987 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -493,10 +493,6 @@
   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 752c5611dc5a0f36d194183eecb10b155451fe77..0060e3609632881bed6384a4fd0ba844945c2808 100644
--- a/src/systemtask/SystemTask.h
+++ b/src/systemtask/SystemTask.h
@@ -77,8 +77,6 @@
       void Start();
       void PushMessage(Messages msg);
 
-      void OnTouchEvent();
-
       bool IsSleepDisabled() {
         return wakeLocksHeld > 0;
       }