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

Commit 860b569b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unused BufferHubBase::GetBlobFds method"

parents aa25ee9b 8870520f
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -212,12 +212,5 @@ int BufferHubBase::GetBlobReadWritePointer(size_t size, void** addr) {
  return ret;
}

void BufferHubBase::GetBlobFds(int* fds, size_t* fds_count,
                               size_t max_fds_count) const {
  size_t numFds = static_cast<size_t>(native_handle()->numFds);
  *fds_count = std::min(max_fds_count, numFds);
  std::copy(native_handle()->data, native_handle()->data + *fds_count, fds);
}

}  // namespace dvr
}  // namespace android
+0 −4
Original line number Diff line number Diff line
@@ -49,10 +49,6 @@ class BufferHubBase : public pdx::Client {
    return LocalHandle(dup(native_handle()->data[0]));
  }

  // Get up to |max_fds_count| file descriptors for accessing the blob shared
  // memory. |fds_count| will contain the actual number of file descriptors.
  void GetBlobFds(int* fds, size_t* fds_count, size_t max_fds_count) const;

  using Client::event_fd;

  Status<int> GetEventMask(int events) {