Remove unused function declarations in target.h

Message ID 1425405544-11817-1-git-send-email-simon.marchi@ericsson.com
State New, archived
Headers

Commit Message

Simon Marchi March 3, 2015, 5:59 p.m. UTC
  find_default_create_inferior and find_default_attach were removed in b3ccfe11.

gdb/ChangeLog:

	* target.h: Remove find_default_create_inferior and
	find_default_attach.
---
 gdb/target.h | 5 -----
 1 file changed, 5 deletions(-)
  

Comments

Yao Qi March 3, 2015, 10:37 p.m. UTC | #1
Hi Simon,

On 03/03/2015 05:59 PM, Simon Marchi wrote:
> gdb/ChangeLog:
> 
> 	* target.h: Remove find_default_create_inferior and
> 	find_default_attach.

I prefer to rewrite it in this way,

	* target.h (find_default_create_inferior): Remove declaration.
	(find_default_attach): Likewise.

The patch is OK.
  
Simon Marchi March 3, 2015, 10:39 p.m. UTC | #2
On 03/03/2015 05:37 PM, Yao Qi wrote:
> Hi Simon,
> 
> On 03/03/2015 05:59 PM, Simon Marchi wrote:
>> gdb/ChangeLog:
>>
>> 	* target.h: Remove find_default_create_inferior and
>> 	find_default_attach.
> 
> I prefer to rewrite it in this way,
> 
> 	* target.h (find_default_create_inferior): Remove declaration.
> 	(find_default_attach): Likewise.
> 
> The patch is OK.

Agreed, it's nicer that way.

Pushed, thanks!
  

Patch

diff --git a/gdb/target.h b/gdb/target.h
index a2d64bf..5ba8425 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -2175,11 +2175,6 @@  extern void noprocess (void) ATTRIBUTE_NORETURN;
 
 extern void target_require_runnable (void);
 
-extern void find_default_attach (struct target_ops *, const char *, int);
-
-extern void find_default_create_inferior (struct target_ops *,
-					  char *, char *, char **, int);
-
 extern struct target_ops *find_target_beneath (struct target_ops *);
 
 /* Find the target at STRATUM.  If no target is at that stratum,