From patchwork Fri Aug 9 15:04:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 1767 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 C11FB6162C for ; Fri, 9 Aug 2019 17:05:05 +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 5A24152A; Fri, 9 Aug 2019 17:05:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1565363105; bh=2X6LOkjV1oeQqjzvsACZexyPj/58gJBG80N7pcPJOVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ILcxTnVMM4HIsDpJ/+gRBZNQIIZJ7OBEb/5UEssIsSmO9kQfrRgOY4dtwFsW0IMF9 rFzjenmuiqEZWZ8EaXobQtt0R2hxgj5C3z7Pyi+u/fBYz+xTgavpNG01k78K27LOWK dpoirRACQHkldfOZs+lEYlpHDVMcKlI91J6bYANk= From: Kieran Bingham To: LibCamera Devel Date: Fri, 9 Aug 2019 16:04:58 +0100 Message-Id: <20190809150459.14421-6-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809150459.14421-1-kieran.bingham@ideasonboard.com> References: <20190809150459.14421-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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: Fri, 09 Aug 2019 15:05:06 -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();