gbranden pushed a commit to branch master
in repository groff.

commit d96a9c58bbe296b065fa250e3ea1e1a410cdde81
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 30 18:18:53 2025 -0500

    [libgroff]: Drop dead code.
    
    * src/libs/libgroff/assert.cpp: Delete.
    * src/libs/libgroff/libgroff.am (libgroff_a_SOURCES): Remove
      aforementioned file from macro definition.
---
 ChangeLog                     |  8 ++++++++
 src/libs/libgroff/assert.cpp  | 44 -------------------------------------------
 src/libs/libgroff/libgroff.am |  1 -
 3 files changed, 8 insertions(+), 45 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 267527924..64b20af5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-04-30  G. Branden Robinson <[email protected]>
+
+       [libgroff]: Drop dead code.
+
+       * src/libs/libgroff/assert.cpp: Delete.
+       * src/libs/libgroff/libgroff.am (libgroff_a_SOURCES): Remove
+       aforementioned file from macro definition.
+
 2025-04-27  G. Branden Robinson <[email protected]>
 
        [indxbib]: Drop dead code (unused function).
diff --git a/src/libs/libgroff/assert.cpp b/src/libs/libgroff/assert.cpp
deleted file mode 100644
index 70b6bf8dc..000000000
--- a/src/libs/libgroff/assert.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (C) 1989-2020 Free Software Foundation, Inc.
-     Written by James Clark ([email protected])
-
-This file is part of groff.
-
-groff is free software; you can redistribute it and/or modify it under
-the terms of the GNU General Public License as published by the Free
-Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-groff is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or
-FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-extern "C" const char *program_name;
-
-void assertion_failed(int lineno, const char *filename,
-                      const char *function, const char *msg)
-{
-  if (program_name != 0)
-    fprintf(stderr, "%s: ", program_name);
-  fprintf(stderr, "%s:%d: %s(): assertion failed: '%s'\n", filename,
-         lineno, function, msg);
-  fflush(stderr);
-  abort();
-}
-
-// Local Variables:
-// fill-column: 72
-// mode: C++
-// End:
-// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/libs/libgroff/libgroff.am b/src/libs/libgroff/libgroff.am
index f0c53a3f0..7d8e517d8 100644
--- a/src/libs/libgroff/libgroff.am
+++ b/src/libs/libgroff/libgroff.am
@@ -24,7 +24,6 @@ libgroff_a_CPPFLAGS = \
 
 # Build from OBJS
 libgroff_a_SOURCES = \
-  src/libs/libgroff/assert.cpp \
   src/libs/libgroff/change_lf.cpp \
   src/libs/libgroff/cmap.cpp \
   src/libs/libgroff/color.cpp \

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

Reply via email to