changeset 12568:c97a23e70cb7

regcomp: sync from glibc: remove dead store * lib/regcomp.c (duplicate_node_closure): Remove useless search_duplicated_node call and dead store.
author Jim Meyering <meyering@redhat.com>
date Mon, 04 Jan 2010 09:09:22 +0100
parents ceb1562f60a5
children 51ea446bf1f8
files ChangeLog lib/regcomp.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-01-04  Jim Meyering  <meyering@redhat.com>
 
+	regcomp: sync from glibc: remove dead store
+	* lib/regcomp.c (duplicate_node_closure): Remove useless
+	search_duplicated_node call and dead store.
+
 	regcomp: sync from glibc; always use nl_langinfo
 	* lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
 	now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
--- a/lib/regcomp.c
+++ b/lib/regcomp.c
@@ -1503,7 +1503,6 @@
 	     destination.  */
 	  org_dest = dfa->edests[org_node].elems[0];
 	  re_node_set_empty (dfa->edests + clone_node);
-	  clone_dest = search_duplicated_node (dfa, org_dest, constraint);
 	  /* If the node is root_node itself, it means the epsilon closure
 	     has a loop.  Then tie it to the destination of the root_node.  */
 	  if (org_node == root_node && clone_node != org_node)