gbranden pushed a commit to branch master
in repository groff.

commit 430f1d0467c14e547e07688fa19181664c8b24ee
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Dec 24 13:36:17 2025 -0600

    [troff]: Delete unused function.
    
    * src/roff/troff/number.cpp (get_number_rigidly): Delete.  It no longer
      has callers; they've migrated to `read_measurement(..., ..., true)`.
      Continues commit 6dcbaa0a7a, 19 December.
---
 ChangeLog                 |  6 ++++++
 src/roff/troff/number.cpp | 16 ----------------
 2 files changed, 6 insertions(+), 16 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a9aedf720..673d46de7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-12-23  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/number.cpp (get_number_rigidly): Delete.  It no
+       longer has a caller; that has migrated to `read_measurement(...,
+       ..., true)`.  Continues commit 6dcbaa0a7a, 19 December.
+
 2025-12-23  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/node.cpp (glyph_node::add_self): Initialize
diff --git a/src/roff/troff/number.cpp b/src/roff/troff/number.cpp
index c4393fd3d..ce70b671d 100644
--- a/src/roff/troff/number.cpp
+++ b/src/roff/troff/number.cpp
@@ -70,22 +70,6 @@ bool read_hunits(hunits *res, unsigned char si)
     return false;
 }
 
-// for \B
-
-bool get_number_rigidly(units *res, unsigned char si)
-{
-  if (!is_valid_expression_start())
-    return false;
-  units x;
-  if (is_valid_expression(&x, si, false /* is_parenthesized */,
-                         true /* is_mandatory */)) {
-    *res = x;
-    return true;
-  }
-  else
-    return false;
-}
-
 bool read_measurement(units *res, unsigned char si, bool is_mandatory)
 {
   if (!is_valid_expression_start())

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to