[7/7] Delete enum inferior_event_handler::INF_TIMER

Message ID 1439398917-22761-8-git-send-email-palves@redhat.com
State New, archived
Headers

Commit Message

Pedro Alves Aug. 12, 2015, 5:01 p.m. UTC
  Nothing ever uses this.

gdb/ChangeLog:
2015-08-12  Pedro Alves  <palves@redhat.com>

	* inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
	* target.h (enum inferior_event_type) <INF_TIMER>: Delete.
---
 gdb/inf-loop.c | 1 -
 gdb/target.h   | 2 --
 2 files changed, 3 deletions(-)
  

Comments

Yao Qi Aug. 18, 2015, 11:22 a.m. UTC | #1
Pedro Alves <palves@redhat.com> writes:

> gdb/ChangeLog:
> 2015-08-12  Pedro Alves  <palves@redhat.com>
>
> 	* inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
> 	* target.h (enum inferior_event_type) <INF_TIMER>: Delete.

It looks good to me.  It can go in separately, since it is a cleanup and
not dependent on other patches in this series.
  

Patch

diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c
index 8aecfe6..aac936f 100644
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -80,7 +80,6 @@  inferior_event_handler (enum inferior_event_type event_type,
 	}
       break;
 
-    case INF_TIMER:
     default:
       printf_unfiltered (_("Event type not recognized.\n"));
       break;
diff --git a/gdb/target.h b/gdb/target.h
index dc3a6d6..bc23f9e 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -122,8 +122,6 @@  enum inferior_event_type
     /* Process a normal inferior event which will result in target_wait
        being called.  */
     INF_REG_EVENT,
-    /* We are called because a timer went off.  */
-    INF_TIMER,
     /* We are called to do stuff after the inferior stops.  */
     INF_EXEC_COMPLETE,
   };