@@ -40,8 +40,6 @@ private:
friend class PipelineHandler;
friend std::ostream &operator<<(std::ostream &out, const Request &r);
- void doCancelRequest();
-
Camera *camera_;
bool cancelled_;
uint32_t sequence_ = 0;
@@ -62,7 +62,6 @@ Request::Private::Private(Camera *camera)
Request::Private::~Private()
{
- doCancelRequest();
}
/**
@@ -141,12 +140,6 @@ void Request::Private::complete()
LIBCAMERA_TRACEPOINT(request_complete, this);
}
-void Request::Private::doCancelRequest()
-{
- cancelled_ = true;
- pending_ = 0;
-}
-
/**
* \brief Cancel a queued request
*
@@ -162,7 +155,8 @@ void Request::Private::cancel()
Request *request = _o<Request>();
ASSERT(request->status() == RequestPending);
- doCancelRequest();
+ cancelled_ = true;
+ pending_ = 0;
}
/**
Now that request cancellation does not emit the `bufferCompleted` event for pending buffers (because there are no longer such things), the function need not be called from the destructor and it can be inlined into its only caller. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- include/libcamera/internal/request.h | 2 -- src/libcamera/request.cpp | 10 ++-------- 2 files changed, 2 insertions(+), 10 deletions(-)