summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-11-21 17:24:57 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-01-12 16:10:37 +0100
commitfca110915525be2105f5495f5f80943261be6757 (patch)
tree890d1988115ae31af146d32e3df1b5a431869399 /include
parent962d1c17a422636c9e1ac8dcbf72b79b3aed8506 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/buffer.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/libcamera/buffer.h b/include/libcamera/buffer.h
index d3dc9a42..55d08e27 100644
--- a/include/libcamera/buffer.h
+++ b/include/libcamera/buffer.h
@@ -129,8 +129,6 @@ private:
void cancel();
- void setRequest(Request *request) { request_ = request; }
-
unsigned int index_;
std::array<int, 3> dmabuf_;
BufferMemory *mem_;