[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 18/24: [troff]: Drop unreachable code.
From: |
G. Branden Robinson |
Subject: |
[groff] 18/24: [troff]: Drop unreachable code. |
Date: |
Sun, 10 Nov 2024 14:56:23 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 64ef0716f3e590c2d3c8ecd33d688b60013a1f54
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Nov 9 11:22:49 2024 -0600
[troff]: Drop unreachable code.
* src/roff/troff/input.cpp (pipe_source_request): Drop branch
unreachable since commit 6dee590de8, 12 September.
This commit omits indentation updates to clarify the change.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f08111d5a..d1a6a7054 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-11-09 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/input.cpp (pipe_source_request): Drop branch
+ unreachable since commit 6dee590de8, 12 September.
+
2024-11-09 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/roff/troff/input.cpp (read_request, do_terminal)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 8218c5f8c..a3f40d6b4 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6617,9 +6617,6 @@ void pipe_source_request() // .pso
skip_line();
}
else {
- if (tok.is_newline() || tok.is_eof())
- error("missing command");
- else {
int c;
while ((c = get_copy(0)) == ' ' || c == '\t')
;
@@ -6652,7 +6649,6 @@ void pipe_source_request() // .pso
error("cannot open pipe to process '%1': %2", buf,
strerror(errno));
delete[] buf;
- }
tok.next();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 18/24: [troff]: Drop unreachable code.,
G. Branden Robinson <=