texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/t/test_utils.pl (_duplicate_element_keys): r


From: Patrice Dumas
Subject: branch master updated: * tp/t/test_utils.pl (_duplicate_element_keys): remove code related to extra keys not existing anymore.
Date: Tue, 07 Mar 2023 12:03:41 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new ff5cc12b51 * tp/t/test_utils.pl (_duplicate_element_keys): remove code 
related to extra keys not existing anymore.
ff5cc12b51 is described below

commit ff5cc12b51b50bdfebfbd5600fd45c89c1c9e2e0
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Mar 7 18:03:28 2023 +0100

    * tp/t/test_utils.pl (_duplicate_element_keys): remove code related to
    extra keys not existing anymore.
---
 tp/t/test_utils.pl | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/tp/t/test_utils.pl b/tp/t/test_utils.pl
index 01602216b1..ca76eec31d 100644
--- a/tp/t/test_utils.pl
+++ b/tp/t/test_utils.pl
@@ -370,6 +370,7 @@ sub remove_keys($$;$)
   return $root;
 }
 
+# currently unused, but could be used again.
 sub duplicate_key_array($$)
 {
   my $element = shift;
@@ -402,15 +403,6 @@ sub _duplicate_element_keys($$)
     $current->{'source_info'} = $new_source_info;
   }
 
-  if (exists($current->{'extra'})) {
-    if (exists($current->{'extra'}->{'nodes_manuals'})
-        and defined($current->{'extra'}->{'nodes_manuals'})) {
-      foreach my $node_manual (@{$current->{'extra'}->{'nodes_manuals'}}) {
-        duplicate_key_array($node_manual, 'node_content');
-      }
-    }
-  }
-
   return ($current);
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]