public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [commit] linespec.c / decode_objc: delete unused variable
@ 2011-03-01  0:27 Michael Snyder
  0 siblings, 0 replies; only message in thread
From: Michael Snyder @ 2011-03-01  0:27 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 13 bytes --]

checked in.


[-- Attachment #2: unused10.txt --]
[-- Type: text/plain, Size: 1286 bytes --]

2011-02-28  Michael Snyder  <msnyder@vmware.com>

	* linespec.c (decode_objc): Delete unused variable.

Index: linespec.c
===================================================================
RCS file: /cvs/src/src/gdb/linespec.c,v
retrieving revision 1.109
diff -u -p -u -p -r1.109 linespec.c
--- linespec.c	9 Jan 2011 03:08:57 -0000	1.109
+++ linespec.c	1 Mar 2011 00:25:02 -0000
@@ -1122,7 +1122,6 @@ decode_objc (char **argptr, int funfirst
   struct symtabs_and_lines values;
   struct symbol **sym_arr = NULL;
   struct symbol *sym = NULL;
-  char *copy = NULL;
   struct block *block = NULL;
   unsigned i1 = 0;
   unsigned i2 = 0;
@@ -1143,7 +1142,7 @@ decode_objc (char **argptr, int funfirst
       set_language (save_language);
     }
 
-  copy = find_imps (file_symtab, block, *argptr, NULL, &i1, &i2); 
+  find_imps (file_symtab, block, *argptr, NULL, &i1, &i2); 
     
   if (i1 > 0)
     {
@@ -1151,8 +1150,7 @@ decode_objc (char **argptr, int funfirst
 	alloca ((i1 + 1) * sizeof (struct symbol *));
       sym_arr[i1] = NULL;
 
-      copy = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2); 
-      *argptr = copy;
+      *argptr = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2);
     }
 
   /* i1 now represents the TOTAL number of matches found.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-01  0:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01  0:27 [commit] linespec.c / decode_objc: delete unused variable Michael Snyder

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 read-only IMAP folder(s) and NNTP newsgroup(s).