test: v4l2_device: Remove unused function

The 'exists()' call is not used within the code base.
Remove it.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Kieran Bingham 2019-08-08 14:47:30 +01:00
parent 093573db19
commit 0268984c0d

View file

@ -6,7 +6,6 @@
*/ */
#include <iostream> #include <iostream>
#include <sys/stat.h>
#include <linux/media-bus-format.h> #include <linux/media-bus-format.h>
@ -18,16 +17,6 @@
using namespace std; using namespace std;
using namespace libcamera; using namespace libcamera;
bool exists(const std::string &path)
{
struct stat sb;
if (stat(path.c_str(), &sb) == 0)
return true;
return false;
}
int V4L2VideoDeviceTest::init() int V4L2VideoDeviceTest::init()
{ {
enumerator_ = DeviceEnumerator::create(); enumerator_ = DeviceEnumerator::create();