[libcamera-devel] cam: capture: remove unused local variable

Message ID 20191025234004.2754-1-paul.elder@ideasonboard.com
State Accepted
Commit b1b0a482787cdac6f4fc88b25dd9bcce69f21de3
Headers show
Series
  • [libcamera-devel] cam: capture: remove unused local variable
Related show

Commit Message

Paul Elder Oct. 25, 2019, 11:40 p.m. UTC
Remove unused local map variable.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
---
 src/cam/capture.cpp | 1 -
 1 file changed, 1 deletion(-)

Comments

Laurent Pinchart Oct. 25, 2019, 11:41 p.m. UTC | #1
Hi Paul,

Thank you for the patch.

On Sat, Oct 26, 2019 at 01:40:04AM +0200, Paul Elder wrote:
> Remove unused local map variable.
> 
> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/cam/capture.cpp | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/cam/capture.cpp b/src/cam/capture.cpp
> index 8a939c62..fa3922ba 100644
> --- a/src/cam/capture.cpp
> +++ b/src/cam/capture.cpp
> @@ -91,7 +91,6 @@ int Capture::capture(EventLoop *loop)
>  			return -ENOMEM;
>  		}
>  
> -		std::map<Stream *, Buffer *> map;
>  		for (StreamConfiguration &cfg : *config_) {
>  			Stream *stream = cfg.stream();
>  			std::unique_ptr<Buffer> buffer = stream->createBuffer(i);

Patch

diff --git a/src/cam/capture.cpp b/src/cam/capture.cpp
index 8a939c62..fa3922ba 100644
--- a/src/cam/capture.cpp
+++ b/src/cam/capture.cpp
@@ -91,7 +91,6 @@  int Capture::capture(EventLoop *loop)
 			return -ENOMEM;
 		}
 
-		std::map<Stream *, Buffer *> map;
 		for (StreamConfiguration &cfg : *config_) {
 			Stream *stream = cfg.stream();
 			std::unique_ptr<Buffer> buffer = stream->createBuffer(i);