diff mbox

[5/5] cleanup unused qemu_system_powerdown

Message ID 1346259767-991-6-git-send-email-imammedo@redhat.com
State New
Headers show

Commit Message

Igor Mammedov Aug. 29, 2012, 5:02 p.m. UTC
all deps that used qemu_system_powerdown are converted to notifiers,
so remove it for have no use anymore

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
 sysemu.h | 2 --
 vl.c     | 3 ---
 2 files changed, 5 deletions(-)
diff mbox

Patch

diff --git a/sysemu.h b/sysemu.h
index eb9a750..1093046 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -9,7 +9,6 @@ 
 #include "qapi-types.h"
 #include "notify.h"
 #include "main-loop.h"
-#include "hw/irq.h"
 
 /* vl.c */
 
@@ -63,7 +62,6 @@  int qemu_reset_requested(void);
 int qemu_powerdown_requested(void);
 void qemu_system_killed(int signal, pid_t pid);
 void qemu_kill_report(void);
-extern qemu_irq qemu_system_powerdown;
 void qemu_devices_reset(void);
 void qemu_system_reset(bool report);
 
diff --git a/vl.c b/vl.c
index 8dc4b4f..e0d1295 100644
--- a/vl.c
+++ b/vl.c
@@ -1594,8 +1594,6 @@  void qemu_system_vmstop_request(RunState state)
     qemu_notify_event();
 }
 
-qemu_irq qemu_system_powerdown;
-
 static bool main_loop_should_exit(void)
 {
     RunState r;
@@ -1633,7 +1631,6 @@  static bool main_loop_should_exit(void)
     }
     if (qemu_powerdown_requested()) {
         qemu_system_powerdown();
-        qemu_irq_raise(qemu_system_powerdown);
     }
     if (qemu_vmstop_requested(&r)) {
         vm_stop(r);