libcamera: buffer: Drop private function setRequest()

There is no need to have a private helper function to access a private
data member when a friend statement is needed anyhow. Remove the helper
function to simplify the code and make it clear that a private member of
Buffer is accessed.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2020-01-12 16:10:37 +01:00
parent 962d1c17a4
commit fca1109155
3 changed files with 6 additions and 8 deletions
-2
View File
@@ -129,8 +129,6 @@ private:
void cancel();
void setRequest(Request *request) { request_ = request; }
unsigned int index_;
std::array<int, 3> dmabuf_;
BufferMemory *mem_;