From patchwork Sat Jan 4 05:09:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2501 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 98C5060466 for ; Sat, 4 Jan 2020 06:10:04 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 32245A49 for ; Sat, 4 Jan 2020 06:10:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1578114604; bh=x364z7FBmwdlMhCMITkp8M8WEN2FwwItMd5D6b6058w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ofraQdrCGnkX0gQAisRVgLyvHP76cGUe18VdH8jJq7My/ByE2HcdEZj3UVdzSgSgL TW2u8h0BGNUfo1xIIPUzfWjtKy02eM3+Fqmrc4ULOj0L66O7YWrRiw9D0SkGJm+B3K w9J13ABFTSaB2PMhipYBVHpQLAJ4RX0fhi5EXw9M= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sat, 4 Jan 2020 07:09:38 +0200 Message-Id: <20200104050947.7673-6-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200104050947.7673-1-laurent.pinchart@ideasonboard.com> References: <20200104050947.7673-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 05/14] libcamera: bound_method: Drop unused BoundMethodBase::connectionType() X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 05:10:04 -0000 The BoundMethodBase::connectionType() method isn't used, drop it. While it at make the connectionType_ member private as it is only used by the class. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- include/libcamera/bound_method.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libcamera/bound_method.h b/include/libcamera/bound_method.h index f23b17c7dd98..a1541212ff3d 100644 --- a/include/libcamera/bound_method.h +++ b/include/libcamera/bound_method.h @@ -35,7 +35,6 @@ public: bool match(Object *object) { return object == object_; } Object *object() const { return object_; } - ConnectionType connectionType() const { return connectionType_; } virtual void invokePack(void *pack) = 0; @@ -44,6 +43,8 @@ protected: void *obj_; Object *object_; + +private: ConnectionType connectionType_; };