* [Qemu-devel] [PATCH] Remove various unused functions
@ 2015-05-03 8:47 Thomas Huth
2015-05-05 10:20 ` Michael Tokarev
2015-05-05 10:32 ` Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2015-05-03 8:47 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial
The functions tpm_backend_thread_tpm_reset() and iothread_find()
are completely unused, let's remove them.
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
---
backends/tpm.c | 11 -----------
include/sysemu/iothread.h | 1 -
include/sysemu/tpm_backend_int.h | 2 --
iothread.c | 12 ------------
4 files changed, 26 deletions(-)
diff --git a/backends/tpm.c b/backends/tpm.c
index 4efe367..36c5d46 100644
--- a/backends/tpm.c
+++ b/backends/tpm.c
@@ -165,17 +165,6 @@ void tpm_backend_thread_end(TPMBackendThread *tbt)
}
}
-void tpm_backend_thread_tpm_reset(TPMBackendThread *tbt,
- GFunc func, gpointer user_data)
-{
- if (!tbt->pool) {
- tpm_backend_thread_create(tbt, func, user_data);
- } else {
- g_thread_pool_push(tbt->pool, (gpointer)TPM_BACKEND_CMD_TPM_RESET,
- NULL);
- }
-}
-
static const TypeInfo tpm_backend_info = {
.name = TYPE_TPM_BACKEND,
.parent = TYPE_OBJECT,
diff --git a/include/sysemu/iothread.h b/include/sysemu/iothread.h
index 7c01a61..2eefea1 100644
--- a/include/sysemu/iothread.h
+++ b/include/sysemu/iothread.h
@@ -33,7 +33,6 @@ typedef struct {
#define IOTHREAD(obj) \
OBJECT_CHECK(IOThread, obj, TYPE_IOTHREAD)
-IOThread *iothread_find(const char *id);
char *iothread_get_id(IOThread *iothread);
AioContext *iothread_get_aio_context(IOThread *iothread);
diff --git a/include/sysemu/tpm_backend_int.h b/include/sysemu/tpm_backend_int.h
index 05d94d0..40f693a 100644
--- a/include/sysemu/tpm_backend_int.h
+++ b/include/sysemu/tpm_backend_int.h
@@ -32,8 +32,6 @@ void tpm_backend_thread_deliver_request(TPMBackendThread *tbt);
void tpm_backend_thread_create(TPMBackendThread *tbt,
GFunc func, gpointer user_data);
void tpm_backend_thread_end(TPMBackendThread *tbt);
-void tpm_backend_thread_tpm_reset(TPMBackendThread *tbt,
- GFunc func, gpointer user_data);
typedef enum TPMBackendCmd {
TPM_BACKEND_CMD_INIT = 1,
diff --git a/iothread.c b/iothread.c
index a1f9109..0416fc4 100644
--- a/iothread.c
+++ b/iothread.c
@@ -114,18 +114,6 @@ static void iothread_register_types(void)
type_init(iothread_register_types)
-IOThread *iothread_find(const char *id)
-{
- Object *container = container_get(object_get_root(), IOTHREADS_PATH);
- Object *child;
-
- child = object_property_get_link(container, id, NULL);
- if (!child) {
- return NULL;
- }
- return (IOThread *)object_dynamic_cast(child, TYPE_IOTHREAD);
-}
-
char *iothread_get_id(IOThread *iothread)
{
return object_get_canonical_path_component(OBJECT(iothread));
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Remove various unused functions
2015-05-03 8:47 [Qemu-devel] [PATCH] Remove various unused functions Thomas Huth
@ 2015-05-05 10:20 ` Michael Tokarev
2015-05-05 10:32 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Michael Tokarev @ 2015-05-05 10:20 UTC (permalink / raw)
To: Thomas Huth, qemu-devel; +Cc: qemu-trivial
Applied to -trivial, thank you!
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Remove various unused functions
2015-05-03 8:47 [Qemu-devel] [PATCH] Remove various unused functions Thomas Huth
2015-05-05 10:20 ` Michael Tokarev
@ 2015-05-05 10:32 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2015-05-05 10:32 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-trivial, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
On Sun, May 03, 2015 at 10:47:22AM +0200, Thomas Huth wrote:
>
> The functions tpm_backend_thread_tpm_reset() and iothread_find()
> are completely unused, let's remove them.
>
> Signed-off-by: Thomas Huth <huth@tuxfamily.org>
> ---
> backends/tpm.c | 11 -----------
> include/sysemu/iothread.h | 1 -
> include/sysemu/tpm_backend_int.h | 2 --
> iothread.c | 12 ------------
> 4 files changed, 26 deletions(-)
Happy with iothread change, we can always bring it back later if needed.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-05 10:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-03 8:47 [Qemu-devel] [PATCH] Remove various unused functions Thomas Huth
2015-05-05 10:20 ` Michael Tokarev
2015-05-05 10:32 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).