Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a4764c0 authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove unused parameters from btu_task_shut_down

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I4e366329e999b25e93d7ff36e34e06f8c5850dd0
parent 539bfff0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ using bluetooth::common::MessageLoopThread;
MessageLoopThread bt_startup_thread("bt_startup_thread");

void btu_task_start_up(void* context);
void btu_task_shut_down(void* context);
void btu_task_shut_down();

/*****************************************************************************
 *
@@ -113,6 +113,6 @@ void BTU_StartUp() {
}

void BTU_ShutDown() {
  btu_task_shut_down(nullptr);
  btu_task_shut_down();
  bt_startup_thread.ShutDown();
}
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ void btu_task_start_up(UNUSED_ATTR void* context) {
  }
}

void btu_task_shut_down(UNUSED_ATTR void* context) {
void btu_task_shut_down() {
  // Shutdown message loop on task completed
  main_thread.ShutDown();

+2 −2
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ TimeoutHelper helper;

// External function definitions
void btu_task_start_up(void* context);
void btu_task_shut_down(void* context);
void btu_task_shut_down();

/* Below are methods and variables that must be implemented if we don't want to
 * compile the whole stack. They will be removed, or changed into mocks one by
@@ -101,7 +101,7 @@ class BtuMessageLoopTest : public testing::Test {
  }

  void TearDown() override {
    btu_task_shut_down(nullptr);
    btu_task_shut_down();
    alarm_cleanup();
    bt_startup_thread.ShutDown();
  }