billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=f4813a229d019e713fac273e56272a828f09d894

commit f4813a229d019e713fac273e56272a828f09d894
Author: Boris Faure <[email protected]>
Date:   Sun Mar 5 16:36:35 2017 +0100

    termio: remove dead code. CID1371738
---
 src/bin/termio.c | 3 ---
 1 file changed, 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);

-- 


Reply via email to