Patchwork [pushed] regcache.c: Remove unused typedefs

login
register
mail settings
Submitter Simon Marchi
Date May 16, 2018, 4:42 p.m.
Message ID <1526488979-12578-1-git-send-email-simon.marchi@ericsson.com>
Download mbox | patch
Permalink /patch/27295/
State New
Headers show

Comments

Simon Marchi - May 16, 2018, 4:42 p.m.
gdb/ChangeLog:

	* regcache.c (regcache_read_ftype, regcache_write_ftype):
	Remove.
---
 gdb/ChangeLog  | 5 +++++
 gdb/regcache.c | 5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 57a4075..3e0c53d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@ 
+2018-05-16  Simon Marchi  <simon.marchi@ericsson.com>
+
+	* regcache.c (regcache_read_ftype, regcache_write_ftype):
+	Remove.
+
 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
 
 	PR binutils/21446
diff --git a/gdb/regcache.c b/gdb/regcache.c
index a3cc774..83bcbd2 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -845,11 +845,6 @@  regcache::cooked_write (int regnum, const gdb_byte *buf)
 /* Perform a partial register transfer using a read, modify, write
    operation.  */
 
-typedef void (regcache_read_ftype) (struct regcache *regcache, int regnum,
-				    void *buf);
-typedef void (regcache_write_ftype) (struct regcache *regcache, int regnum,
-				     const void *buf);
-
 enum register_status
 readable_regcache::read_part (int regnum, int offset, int len, void *in,
 			      bool is_raw)