From patchwork Tue Aug 13 09:40:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 1804 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 78E4861624 for ; Tue, 13 Aug 2019 11:40:26 +0200 (CEST) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1578A327; Tue, 13 Aug 2019 11:40:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1565689226; bh=KuWEHIP7kI5s1B4Y6wAB4Z/UIf5ZF8he91quKAYIGKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tPQwXRKDyMszwiyGPWapyOa5MJFuguE2ieCoSoZ+fthW6WIx/znlkjgOgtbE6guUo 1OMY+NE395anlFi4lfNNKOAnxjBK/FEdvM2ac2M69jmxg4aZG7yD8fJm2RUx2Ebn1s 384PknzoQwy9zb5/EpxjcSEQ4LrC3cwkHGYvsY6g= From: Kieran Bingham To: LibCamera Devel Date: Tue, 13 Aug 2019 10:40:19 +0100 Message-Id: <20190813094020.10277-6-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190813094020.10277-1-kieran.bingham@ideasonboard.com> References: <20190813094020.10277-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 5/6] test: v4l2_device: Remove unused function X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2019 09:40:26 -0000 The 'exists()' call is not used within the code base. Remove it. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- test/v4l2_videodevice/v4l2_videodevice_test.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.cpp b/test/v4l2_videodevice/v4l2_videodevice_test.cpp index a0d269fef7f4..096f9649bfc9 100644 --- a/test/v4l2_videodevice/v4l2_videodevice_test.cpp +++ b/test/v4l2_videodevice/v4l2_videodevice_test.cpp @@ -6,7 +6,6 @@ */ #include -#include #include @@ -18,16 +17,6 @@ using namespace std; 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() { enumerator_ = DeviceEnumerator::create();