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

Commit 603bf656 authored by Krzysztof Kosiński's avatar Krzysztof Kosiński
Browse files

Bluetooth: fix -Wdefaulted-function-deleted warnings.

Some types had explicitly defaulted constructors even though they
are not actually default-constructible. Also fixes an unused
variable warning.

Tag: #refactor
Bug: 241680050
Test: atest --host bluetoothtbd_test net_test_osi
Change-Id: Ieea664fe7c6ecdca6be352777c775dfd4649e5bd
parent b3f85a26
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ hash_map_utils_new_from_string_params(const char* params) {
  if (!str) return map;

  // Parse |str| and add extracted key-and-value pair(s) in |map|.
  int items = 0;
  char* tmpstr;
  char* kvpair = strtok_r(str, ";", &tmpstr);
  while (kvpair && *kvpair) {
@@ -60,8 +59,6 @@ hash_map_utils_new_from_string_params(const char* params) {

    osi_free(key);
    osi_free(value);

    items++;
  next_pair:
    kvpair = strtok_r(NULL, ";", &tmpstr);
  }
+0 −2
Original line number Diff line number Diff line
@@ -36,8 +36,6 @@ class IPCHandlerBinder : public IPCHandler {
  void Stop() override;

 private:
  IPCHandlerBinder() = default;

  // Notify the delegate that IPC has started.
  void NotifyStarted();
};
+0 −2
Original line number Diff line number Diff line
@@ -45,8 +45,6 @@ class IPCHandlerLinux : public IPCHandler {
  void Stop() override;

 private:
  IPCHandlerLinux() = default;

  // Starts listening for incoming connections. Posted on |thread_| by Run().
  void StartListeningOnThread();