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

Commit 6ad594eb authored by cmanton@google.com's avatar cmanton@google.com Committed by Automerger Merge Worker
Browse files

Remove unused main::shim::btm::ReadLeRemoteDeviceName am: 354c5007 am: c9a250f6

parents f3b54762 c9a250f6
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -419,20 +419,6 @@ BtmStatus Btm::ReadClassicRemoteDeviceName(const RawAddress& raw_address,
  return BTM_UNDEFINED;
}

BtmStatus Btm::ReadLeRemoteDeviceName(const RawAddress& raw_address,
                                      tBTM_NAME_CMPL_CB* callback) {
  if (!CheckLeAclLink(raw_address)) {
    return BTM_UNKNOWN_ADDR;
  }

  if (!le_read_remote_name_.Start(raw_address)) {
    return BTM_BUSY;
  }

  LOG_INFO("UNIMPLEMENTED %s need access to GATT module", __func__);
  return BTM_UNKNOWN_ADDR;
}

BtmStatus Btm::CancelAllReadRemoteDeviceName() {
  LOG_ALWAYS_FATAL("unreachable");
  return BTM_UNDEFINED;
+1 −7
Original line number Diff line number Diff line
@@ -138,8 +138,6 @@ class Btm {
  // Remote device name API
  BtmStatus ReadClassicRemoteDeviceName(const RawAddress& raw_address,
                                        tBTM_NAME_CMPL_CB* callback);
  BtmStatus ReadLeRemoteDeviceName(const RawAddress& raw_address,
                                   tBTM_NAME_CMPL_CB* callback);
  BtmStatus CancelAllReadRemoteDeviceName();

  // Le neighbor interaction API
@@ -238,11 +236,7 @@ class Btm {
    void OnBigInfoReport(uint16_t sync_handle, bool encrypted) override;
  };
  ScanningCallbacks scanning_callbacks_;

  // TODO(cmanton) abort if there is no classic acl link up
  bool CheckClassicAclLink(const RawAddress& raw_address) { return true; }
  bool CheckLeAclLink(const RawAddress& raw_address) { return true; }
  void StartScanning(bool use_active_scanning);
  void StartScanning(bool /* use_active_scanning */);
};

}  // namespace shim