From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbovA-0004QR-3M for qemu-devel@nongnu.org; Fri, 23 Nov 2012 03:47:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tbov3-0002lw-G9 for qemu-devel@nongnu.org; Fri, 23 Nov 2012 03:47:36 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:36785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tbov3-0002lP-99 for qemu-devel@nongnu.org; Fri, 23 Nov 2012 03:47:29 -0500 Received: by mail-we0-f173.google.com with SMTP id z2so1164302wey.4 for ; Fri, 23 Nov 2012 00:47:28 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 23 Nov 2012 09:47:16 +0100 Message-Id: <1353660436-8897-6-git-send-email-pbonzini@redhat.com> In-Reply-To: <1353660436-8897-1-git-send-email-pbonzini@redhat.com> References: <1353660436-8897-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 1.3 5/5] qom: make object_finalize static List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, Liu Ping Fan It is not used anymore, and there is no need to make it public. Signed-off-by: Paolo Bonzini --- include/qemu/object.h | 9 --------- qom/object.c | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/qemu/object.h b/include/qemu/object.h index 5ddcb4a..ed1f47f 100644 --- a/include/qemu/object.h +++ b/include/qemu/object.h @@ -505,15 +505,6 @@ void object_initialize_with_type(void *data, Type type); void object_initialize(void *obj, const char *typename); /** - * object_finalize: - * @obj: The object to finalize. - * - * This function destroys and object without freeing the memory associated with - * it. - */ -void object_finalize(void *obj); - -/** * object_dynamic_cast: * @obj: The object to cast. * @typename: The @typename to cast to. diff --git a/qom/object.c b/qom/object.c index f3e9517..70354fc 100644 --- a/qom/object.c +++ b/qom/object.c @@ -379,7 +379,7 @@ static void object_deinit(Object *obj, TypeImpl *type) } } -void object_finalize(void *data) +static void object_finalize(void *data) { Object *obj = data; TypeImpl *ti = obj->class->type; -- 1.8.0