aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-03-05 16:36:35 +0100
committerBoris Faure <billiob@gmail.com>2017-03-05 16:36:35 +0100
commitf4813a229d019e713fac273e56272a828f09d894 (patch)
tree5cae624595a032536998ca06c05d95ad1e2c26a5
parentmay fix mouse motion reporting. T4874 (diff)
downloadterminology-f4813a229d019e713fac273e56272a828f09d894.tar.gz
termio: remove dead code. CID1371738
-rw-r--r--src/bin/termio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index c837e92..e82e9ae 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -3813,7 +3813,6 @@ _rep_mouse_move(Termio *sd, int cx, int cy)
case MOUSE_EXT_NONE:
if ((cx < (0xff - ' ')) && (cy < (0xff - ' ')))
{
- if (btn > 2) btn = 0;
buf[0] = 0x1b;
buf[1] = '[';
buf[2] = 'M';
@@ -3829,7 +3828,6 @@ _rep_mouse_move(Termio *sd, int cx, int cy)
{
int v, i;
- if (btn > 2) btn = 0;
buf[0] = 0x1b;
buf[1] = '[';
buf[2] = 'M';
@@ -3864,7 +3862,6 @@ _rep_mouse_move(Termio *sd, int cx, int cy)
break;
case MOUSE_EXT_URXVT: // ESC.[.NUM.;.NUM.;.NUM.M
{
- if (btn > 2) btn = 0;
snprintf(buf, sizeof(buf), "%c[%i;%i;%iM", 0x1b,
btn + 32 + ' ',
cx + 1, cy + 1);