From 39d13c8489e98cb7f7d3a74103b5e80f76ccbdc9 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 11 Oct 2020 05:54:15 -0400 Subject: [PATCH] draw_borders: remove unnecessary else clauses --- src/lib/reel.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/lib/reel.c b/src/lib/reel.c index 8911cf87e..807655354 100644 --- a/src/lib/reel.c +++ b/src/lib/reel.c @@ -135,15 +135,6 @@ draw_borders(ncplane* w, unsigned mask, uint64_t channel, direction_e direction) ncplane_putc(w, &ul); ncplane_hline(w, &hl, lenx - 2); ncplane_putc(w, &ur); - }else{ - if(!(mask & NCBOXMASK_LEFT)){ - ncplane_home(w); - ncplane_putc(w, &ul); - } - if(!(mask & NCBOXMASK_RIGHT)){ - ncplane_cursor_move_yx(w, 0, lenx - 1); - ncplane_putc(w, &ur); - } } } int y; @@ -163,17 +154,6 @@ draw_borders(ncplane* w, unsigned mask, uint64_t channel, direction_e direction) ncplane_putc(w, &ll); ncplane_hline(w, &hl, lenx - 2); ncplane_putc(w, &lr); - }else{ - if(!(mask & NCBOXMASK_LEFT)){ - if(ncplane_cursor_move_yx(w, maxy, 0) || ncplane_putc(w, &ll) < 0){ - ret = -1; - } - } - if(!(mask & NCBOXMASK_RIGHT)){ - if(ncplane_cursor_move_yx(w, maxy, maxx) || ncplane_putc(w, &lr) < 0){ - ret = -1; - } - } } } cell_release(w, &ul); cell_release(w, &ur); cell_release(w, &hl);