[vte] parser: Remove redundant assignment
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] parser: Remove redundant assignment
- Date: Tue, 27 Mar 2018 17:47:56 +0000 (UTC)
commit a7385b19423cd33d723715bbc039561a85e5e616
Author: Christian Persch <chpe src gnome org>
Date: Tue Mar 27 19:40:13 2018 +0200
parser: Remove redundant assignment
Don't clear seq.command first and then immediately overwrite
the value again.
src/parser.cc | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/parser.cc b/src/parser.cc
index e1c99d8..6945f3d 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -608,7 +608,6 @@ static int parser_print(struct vte_parser *parser, uint32_t raw)
static int parser_execute(struct vte_parser *parser, uint32_t raw)
{
parser->seq.type = VTE_SEQ_CONTROL;
- parser->seq.command = VTE_CMD_GRAPHIC;
parser->seq.terminator = raw;
parser->seq.charset = VTE_CHARSET_NONE;
parser->seq.command = vte_parse_host_control(&parser->seq);
@@ -784,7 +783,6 @@ static int parser_dcs_collect(struct vte_parser *parser, uint32_t raw)
static int parser_esc(struct vte_parser *parser, uint32_t raw)
{
parser->seq.type = VTE_SEQ_ESCAPE;
- parser->seq.command = VTE_CMD_NONE;
parser->seq.terminator = raw;
parser->seq.charset = VTE_CHARSET_NONE;
parser->seq.command = vte_parse_host_escape(&parser->seq,
@@ -808,7 +806,6 @@ static int parser_csi(struct vte_parser *parser, uint32_t raw)
}
parser->seq.type = VTE_SEQ_CSI;
- parser->seq.command = VTE_CMD_NONE;
parser->seq.terminator = raw;
parser->seq.charset = VTE_CHARSET_NONE;
parser->seq.command = vte_parse_host_csi(&parser->seq);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]