[latex3-commits] [git/LaTeX3-latex3-pdfresources] main: remove unneeded predicate function (404c4f6)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Feb 12 11:06:09 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : main
Link       : https://github.com/latex3/pdfresources/commit/404c4f6d7f066a3c4e9ec7edd5e40aff269d0eb5

>---------------------------------------------------------------

commit 404c4f6d7f066a3c4e9ec7edd5e40aff269d0eb5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Feb 12 11:06:09 2021 +0100

    remove unneeded predicate function


>---------------------------------------------------------------

404c4f6d7f066a3c4e9ec7edd5e40aff269d0eb5
 hyperref-generic.dtx |  10 +++++++++-
 hyperref-generic.pdf | Bin 832609 -> 834269 bytes
 l3pdfmeta.dtx        |  20 --------------------
 l3pdfmeta.pdf        | Bin 428424 -> 426354 bytes
 4 files changed, 9 insertions(+), 21 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 47bd692..330ecb6 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -1940,7 +1940,15 @@
     \bool_if:NTF \l_@@_annot_Named_bool
       {
          \group_begin:
-         \pdfmeta_if_named_action_allowed:nTF {#1}
+         \bool_set_true:N\l_tmpa_bool
+         \prop_get:NnNT \g_pdfmeta_standard_prop {named_actions} \l_@@_tmpa_tl
+           {
+             \tl_if_in:NnF \l_@@_tmpa_tl {#1}
+               {
+                 \bool_set_false:N\l_tmpa_bool
+               }
+           }
+         \bool_if:NTF \l_tmpa_bool
            {
              \mode_leave_vertical:
              \pdfdict_put:nnx {l_hyp/annot/A/Named}{N}
diff --git a/hyperref-generic.pdf b/hyperref-generic.pdf
index 12b4085..b5031f5 100644
Binary files a/hyperref-generic.pdf and b/hyperref-generic.pdf differ
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 0beddde..63e3dcd 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -148,26 +148,6 @@
 \prop_new:N \g_pdfmeta_standard_prop
 %    \end{macrocode}
 % \end{variable}
-% This conditional tests if the value for /N in a named action is allowed
-% (pdf/A restrict the names).
-%    \begin{macrocode}
-\prg_new_protected_conditional:Npnn \pdfmeta_if_named_action_allowed:n #1 { F, T , TF }
-  {
-    \prop_get:NnNTF \g_pdfmeta_standard_prop {named_actions} \l_@@_tmpa_tl
-      {
-        \tl_if_in:NnTF \l_@@_tmpa_tl { #1 }
-          {
-            \prg_return_true: %restricted but ok
-          }
-          {
-            \prg_return_false: %restricted and false
-          }
-      }
-      {
-        \prg_return_true: %not restricted
-      }
-  }
-%    \end{macrocode}
 %    \begin{macrocode}
 \hook_gput_code:nnn {begindocument} {pdf}
   {
diff --git a/l3pdfmeta.pdf b/l3pdfmeta.pdf
index 7ec10c2..2577829 100644
Binary files a/l3pdfmeta.pdf and b/l3pdfmeta.pdf differ





More information about the latex3-commits mailing list.