{"id":1754,"url":"https://patchwork.libcamera.org/api/patches/1754/?format=json","web_url":"https://patchwork.libcamera.org/patch/1754/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190808151221.24254-6-kieran.bingham@ideasonboard.com>","date":"2019-08-08T15:12:20","name":"[libcamera-devel,5/6] test: v4l2_device: Remove unused function","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"65a16f3813825f30cd424902400781044b4ad03f","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/?format=json","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/1754/mbox/","series":[{"id":449,"url":"https://patchwork.libcamera.org/api/series/449/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=449","date":"2019-08-08T15:12:15","name":"V4L2 M2M Support (+RPi PoC)","version":1,"mbox":"https://patchwork.libcamera.org/series/449/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/1754/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/1754/checks/","tags":{},"headers":{"Return-Path":"<kieran.bingham@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F17566162B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  8 Aug 2019 17:12:27 +0200 (CEST)","from localhost.localdomain\n\t(cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 92AB8555;\n\tThu,  8 Aug 2019 17:12:27 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1565277147;\n\tbh=PZ0Pcq9Co12WIE6KD6hqDpe25Af9mkFHXHCiqUPzlg8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=OHJvlOKppCOIJEhM6q48p2vUGiRTvColQX+XMhHrlXsNvhepOKzvPRILL7t167N+9\n\tUcdLWDs2yhs9rCW+3cf7cE/njY008ma+1QA5LTqkMWz2hCzrnuA5kGX2OrXrqL5P9h\n\tSpFxz2OSWiLBEFjaps6LcWDOXJt2D7vpKikF2leI=","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","To":"LibCamera Devel <libcamera-devel@lists.libcamera.org>","Date":"Thu,  8 Aug 2019 16:12:20 +0100","Message-Id":"<20190808151221.24254-6-kieran.bingham@ideasonboard.com>","X-Mailer":"git-send-email 2.20.1","In-Reply-To":"<20190808151221.24254-1-kieran.bingham@ideasonboard.com>","References":"<20190808151221.24254-1-kieran.bingham@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 5/6] test: v4l2_device: Remove unused\n\tfunction","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Thu, 08 Aug 2019 15:12:28 -0000"},"content":"The 'exists()' call is not used within the code base.\nRemove it.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n test/v4l2_videodevice/v4l2_videodevice_test.cpp | 11 -----------\n 1 file changed, 11 deletions(-)","diff":"diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.cpp b/test/v4l2_videodevice/v4l2_videodevice_test.cpp\nindex b26d06ad4519..b4f4ae672580 100644\n--- a/test/v4l2_videodevice/v4l2_videodevice_test.cpp\n+++ b/test/v4l2_videodevice/v4l2_videodevice_test.cpp\n@@ -6,7 +6,6 @@\n  */\n \n #include <iostream>\n-#include <sys/stat.h>\n \n #include \"v4l2_videodevice_test.h\"\n \n@@ -16,16 +15,6 @@\n using namespace std;\n using namespace libcamera;\n \n-bool exists(const std::string &path)\n-{\n-\tstruct stat sb;\n-\n-\tif (stat(path.c_str(), &sb) == 0)\n-\t\treturn true;\n-\n-\treturn false;\n-}\n-\n int V4L2VideoDeviceTest::init()\n {\n \tenumerator_ = DeviceEnumerator::create();\n","prefixes":["libcamera-devel","5/6"]}