From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn41i-0003ZC-3t for qemu-devel@nongnu.org; Wed, 21 May 2014 06:45:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn41b-0002VX-TB for qemu-devel@nongnu.org; Wed, 21 May 2014 06:45:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn41b-0002VJ-M8 for qemu-devel@nongnu.org; Wed, 21 May 2014 06:45:31 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4LAjU5n006687 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 21 May 2014 06:45:31 -0400 From: Gerd Hoffmann Date: Wed, 21 May 2014 12:45:15 +0200 Message-Id: <1400669115-17663-6-git-send-email-kraxel@redhat.com> In-Reply-To: <1400669115-17663-1-git-send-email-kraxel@redhat.com> References: <1400669115-17663-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 5/5] error: error_is_set() is finally unused; remove List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , Gerd Hoffmann From: Markus Armbruster Signed-off-by: Markus Armbruster Signed-off-by: Gerd Hoffmann --- include/qapi/error.h | 6 ------ util/error.c | 5 ----- 2 files changed, 11 deletions(-) diff --git a/include/qapi/error.h b/include/qapi/error.h index 7995801..d712089 100644 --- a/include/qapi/error.h +++ b/include/qapi/error.h @@ -67,12 +67,6 @@ void error_set_win32(Error **errp, int win32_err, ErrorClass err_class, */ void error_setg_file_open(Error **errp, int os_errno, const char *filename); -/** - * Returns true if an indirect pointer to an error is pointing to a valid - * error object. - */ -bool error_is_set(Error **errp); - /* * Get the error class of an error object. */ diff --git a/util/error.c b/util/error.c index 66245cc..2ace0d8 100644 --- a/util/error.c +++ b/util/error.c @@ -142,11 +142,6 @@ Error *error_copy(const Error *err) return err_new; } -bool error_is_set(Error **errp) -{ - return (errp && *errp); -} - ErrorClass error_get_class(const Error *err) { return err->err_class; -- 1.8.3.1