From f9b39ec6f1bc8613617abda1a29726a2a984ad45 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 4 Jan 2010 09:09:22 +0100 Subject: [PATCH] regcomp: sync from glibc: remove dead store * lib/regcomp.c (duplicate_node_closure): Remove useless search_duplicated_node call and dead store. --- ChangeLog | 4 ++++ lib/regcomp.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a69a14cc65..79da54e142 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-01-04 Jim Meyering + 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. diff --git a/lib/regcomp.c b/lib/regcomp.c index 3f21722367..0b900c5b6b 100644 --- a/lib/regcomp.c +++ b/lib/regcomp.c @@ -1503,7 +1503,6 @@ duplicate_node_closure (re_dfa_t *dfa, Idx top_org_node, Idx top_clone_node, 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) -- 2.30.2