* [commit][obvious] Remove dead code from objc-lang.c (spurious "fprintf (stderr...")
@ 2014-09-16 19:42 Sergio Durigan Junior
0 siblings, 0 replies; only message in thread
From: Sergio Durigan Junior @ 2014-09-16 19:42 UTC (permalink / raw)
To: GDB Patches; +Cc: Sergio Durigan Junior
This obvious change removes dead code from objc-lang.c. I was
grepping for "fprintf (stderr..." and found this code between "#if
0".."#endif" blocks.
2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
* objc-lang.c (find_implementation_from_class): Remove dead code.
---
gdb/ChangeLog | 4 ++++
gdb/objc-lang.c | 5 -----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d6453f1..8216274 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
+ * objc-lang.c (find_implementation_from_class): Remove dead code.
+
+2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
+
PR cli/7233
* linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
"fprintf_unfiltered (gdb_stdlog...)".
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index 22f6089..d911d8f 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -1472,11 +1472,6 @@ find_implementation_from_class (struct gdbarch *gdbarch,
struct objc_method meth_str;
read_objc_methlist_method (gdbarch, mlist, i, &meth_str);
-#if 0
- fprintf (stderr,
- "checking method 0x%lx against selector 0x%lx\n",
- meth_str.name, sel);
-#endif
if (meth_str.name == sel)
/* FIXME: hppa arch was doing a pointer dereference
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-16 19:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-16 19:42 [commit][obvious] Remove dead code from objc-lang.c (spurious "fprintf (stderr...") Sergio Durigan Junior
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).