[libcamera-devel,04/11] libcamera: ipa_proxy: Don't include <iostream>

Message ID 20200427031713.14013-5-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • libcamera: Add support for IPA configuration
Related show

Commit Message

Laurent Pinchart April 27, 2020, 3:17 a.m. UTC
The iostream header isn't needed. Drop it.

Fixes: c2a8217df54c ("libcamera: add IPA proxy")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/libcamera/ipa_proxy.cpp | 2 --
 1 file changed, 2 deletions(-)

Comments

Jacopo Mondi April 27, 2020, 8:09 a.m. UTC | #1
Hi Laurent,

On Mon, Apr 27, 2020 at 06:17:06AM +0300, Laurent Pinchart wrote:
> The iostream header isn't needed. Drop it.
>
> Fixes: c2a8217df54c ("libcamera: add IPA proxy")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>

Thanks
   j

> ---
>  src/libcamera/ipa_proxy.cpp | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/src/libcamera/ipa_proxy.cpp b/src/libcamera/ipa_proxy.cpp
> index 22b246be5797..43ac9afc25cb 100644
> --- a/src/libcamera/ipa_proxy.cpp
> +++ b/src/libcamera/ipa_proxy.cpp
> @@ -13,8 +13,6 @@
>  #include "log.h"
>  #include "utils.h"
>
> -#include <iostream>
> -
>  /**
>   * \file ipa_proxy.h
>   * \brief IPA Proxy
> --
> Regards,
>
> Laurent Pinchart
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel@lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
Kieran Bingham April 27, 2020, 10:27 a.m. UTC | #2
Hi Laurent,

On 27/04/2020 04:17, Laurent Pinchart wrote:
> The iostream header isn't needed. Drop it.
> 

Hrm ... is there a way to detect this with any tooling that could then
be integrated into checkstyle.py somehow?

Can the compiler tell us what files are included redundantly?

Still, regardless:

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> Fixes: c2a8217df54c ("libcamera: add IPA proxy")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  src/libcamera/ipa_proxy.cpp | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/src/libcamera/ipa_proxy.cpp b/src/libcamera/ipa_proxy.cpp
> index 22b246be5797..43ac9afc25cb 100644
> --- a/src/libcamera/ipa_proxy.cpp
> +++ b/src/libcamera/ipa_proxy.cpp
> @@ -13,8 +13,6 @@
>  #include "log.h"
>  #include "utils.h"
>  
> -#include <iostream>
> -
>  /**
>   * \file ipa_proxy.h
>   * \brief IPA Proxy
>
Laurent Pinchart April 27, 2020, 10:46 a.m. UTC | #3
Hi Kieran,

On Mon, Apr 27, 2020 at 11:27:32AM +0100, Kieran Bingham wrote:
> On 27/04/2020 04:17, Laurent Pinchart wrote:
> > The iostream header isn't needed. Drop it.
> 
> Hrm ... is there a way to detect this with any tooling that could then
> be integrated into checkstyle.py somehow?
> 
> Can the compiler tell us what files are included redundantly?

I'm not aware of a way to do so, but if there's one, I'll review patches
:-)

> Still, regardless:
> 
> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> 
> > Fixes: c2a8217df54c ("libcamera: add IPA proxy")
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> >  src/libcamera/ipa_proxy.cpp | 2 --
> >  1 file changed, 2 deletions(-)
> > 
> > diff --git a/src/libcamera/ipa_proxy.cpp b/src/libcamera/ipa_proxy.cpp
> > index 22b246be5797..43ac9afc25cb 100644
> > --- a/src/libcamera/ipa_proxy.cpp
> > +++ b/src/libcamera/ipa_proxy.cpp
> > @@ -13,8 +13,6 @@
> >  #include "log.h"
> >  #include "utils.h"
> >  
> > -#include <iostream>
> > -
> >  /**
> >   * \file ipa_proxy.h
> >   * \brief IPA Proxy

Patch

diff --git a/src/libcamera/ipa_proxy.cpp b/src/libcamera/ipa_proxy.cpp
index 22b246be5797..43ac9afc25cb 100644
--- a/src/libcamera/ipa_proxy.cpp
+++ b/src/libcamera/ipa_proxy.cpp
@@ -13,8 +13,6 @@ 
 #include "log.h"
 #include "utils.h"
 
-#include <iostream>
-
 /**
  * \file ipa_proxy.h
  * \brief IPA Proxy