From: Markus Armbruster Date: Mon, 19 May 2014 16:57:38 +0000 (+0200) Subject: error: error_is_set() is finally unused; remove X-Git-Tag: v2.1.0-rc0~111^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2e064a73ee7e5af244ff7b6406ac2344bbaa231;p=thirdparty%2Fqemu.git error: error_is_set() is finally unused; remove Signed-off-by: Markus Armbruster Signed-off-by: Gerd Hoffmann --- diff --git a/include/qapi/error.h b/include/qapi/error.h index 79958011db8..d712089f1ae 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 66245ccd1f8..2ace0d8dd95 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;