From patchwork Thu Aug 8 15:12:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 1754 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F17566162B for ; Thu, 8 Aug 2019 17:12:27 +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 92AB8555; Thu, 8 Aug 2019 17:12:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1565277147; bh=PZ0Pcq9Co12WIE6KD6hqDpe25Af9mkFHXHCiqUPzlg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OHJvlOKppCOIJEhM6q48p2vUGiRTvColQX+XMhHrlXsNvhepOKzvPRILL7t167N+9 UcdLWDs2yhs9rCW+3cf7cE/njY008ma+1QA5LTqkMWz2hCzrnuA5kGX2OrXrqL5P9h SpFxz2OSWiLBEFjaps6LcWDOXJt2D7vpKikF2leI= From: Kieran Bingham To: LibCamera Devel 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 Subject: [libcamera-devel] [PATCH 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: Thu, 08 Aug 2019 15:12:28 -0000 The 'exists()' call is not used within the code base. Remove it. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- 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 b26d06ad4519..b4f4ae672580 100644 --- a/test/v4l2_videodevice/v4l2_videodevice_test.cpp +++ b/test/v4l2_videodevice/v4l2_videodevice_test.cpp @@ -6,7 +6,6 @@ */ #include -#include #include "v4l2_videodevice_test.h" @@ -16,16 +15,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();