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

Commit ffe765cf authored by Henri Chataing's avatar Henri Chataing
Browse files

system/btif: Remove unused method MediaCallbacks::SendActiveDeviceChanged

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, dead code removal
Change-Id: I5c77108fdb691f5ee4b6feb7940fff6335717105
parent b03d3e5b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -578,11 +578,6 @@ void AvrcpService::SendFolderUpdate(bool available_players, bool addressed_playe
  }
}

// Send out the track changed info to update the playback state for each device
void AvrcpService::SendActiveDeviceChanged(const RawAddress& /*address*/) {
  SendMediaUpdate(false, true, false);
}

void AvrcpService::SendPlayerSettingsChanged(std::vector<PlayerAttribute> attributes,
                                             std::vector<uint8_t> values) {
  if (attributes.size() != values.size()) {
+0 −1
Original line number Diff line number Diff line
@@ -70,7 +70,6 @@ public:
  // Functions inherited from MediaCallbacks in order to receive updates
  void SendMediaUpdate(bool track_changed, bool play_state, bool queue) override;
  void SendFolderUpdate(bool available_players, bool addressed_player, bool queue) override;
  void SendActiveDeviceChanged(const RawAddress& address) override;

  void SendPlayerSettingsChanged(std::vector<PlayerAttribute> attributes,
                                 std::vector<uint8_t> values) override;
+0 −1
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ AvrcpService* AvrcpService::instance_ = nullptr;
void AvrcpService::SendMediaUpdate(bool /*track_changed*/, bool /*play_state*/, bool /*queue*/) {}
void AvrcpService::SendFolderUpdate(bool /*available_players*/, bool /*addressed_players*/,
                                    bool /*uids*/) {}
void AvrcpService::SendActiveDeviceChanged(const RawAddress& /*address*/) {}
void AvrcpService::SendPlayerSettingsChanged(std::vector<PlayerAttribute> /*attributes*/,
                                             std::vector<uint8_t> /*values*/) {}
void AvrcpService::ServiceInterfaceImpl::Init(
+0 −2
Original line number Diff line number Diff line
@@ -76,8 +76,6 @@ public:
  virtual void SendMediaUpdate(bool track_changed, bool play_state, bool queue) = 0;
  virtual void SendFolderUpdate(bool available_players, bool addressed_players,
                                bool uids_changed) = 0;
  virtual void SendActiveDeviceChanged(const RawAddress& address) = 0;

  virtual void SendPlayerSettingsChanged(std::vector<PlayerAttribute> attributes,
                                         std::vector<uint8_t> values) = 0;
  virtual ~MediaCallbacks() = default;