gbranden pushed a commit to branch master
in repository groff.
commit 695afcafaebc4038389b3f8786fd4653937bb2a6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Sep 9 23:40:40 2024 -0500
[troff]: Drop dead `diversion` member variables.
* src/roff/troff/div.cpp (class diversion): Drop unused member variables
`any_chars_added` and `needs_push`.
---
ChangeLog | 5 +++++
src/roff/troff/div.cpp | 4 ++--
src/roff/troff/div.h | 2 --
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 616d6b358..a4cf4cbcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-09-09 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/div.cpp (class diversion): Drop unused member
+ variables `any_chars_added` and `needs_push`.
+
2024-09-09 G. Branden Robinson <[email protected]>
* src/roff/troff/div.cpp (macro_diversion::macro_diversion):
diff --git a/src/roff/troff/div.cpp b/src/roff/troff/div.cpp
index 04649c2ee..5c4f729f5 100644
--- a/src/roff/troff/div.cpp
+++ b/src/roff/troff/div.cpp
@@ -50,8 +50,8 @@ static vunits needed_space;
diversion::diversion(symbol s)
: prev(0 /* nullptr */), nm(s), vertical_position(V0),
- high_water_mark(V0), any_chars_added(0), no_space_mode(0),
- needs_push(0), saved_seen_break(0), saved_seen_space(0),
+ high_water_mark(V0), no_space_mode(0),
+ saved_seen_break(0), saved_seen_space(0),
saved_seen_eol(0), saved_suppress_next_eol(0), marked_place(V0)
{
}
diff --git a/src/roff/troff/div.h b/src/roff/troff/div.h
index 242f29134..1d9e83c53 100644
--- a/src/roff/troff/div.h
+++ b/src/roff/troff/div.h
@@ -35,9 +35,7 @@ protected:
vunits vertical_position;
vunits high_water_mark;
public:
- int any_chars_added;
int no_space_mode;
- int needs_push;
int saved_seen_break;
int saved_seen_space;
int saved_seen_eol;
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit