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:
parent
093573db19
commit
0268984c0d
1 changed files with 0 additions and 11 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue