myadm

Simple MySQL client for the terminal
git clone git://git.bitsmanent.org/myadm
Log | Files | Refs | README | LICENSE

commit ae99ffa0fd68ea76b131d17004dea676ac03ee01
parent 06c68ab0d59256860b6457bd6c8809f503f403bf
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Mon, 29 Feb 2016 19:02:00 +0100

Remove an useless check.

Diffstat:
Mcore.c | 12++----------
1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/core.c b/core.c @@ -159,6 +159,7 @@ detach(View *v) { *tv = v->next; } +/* XXX attachto(void, void)? */ void attachitemto(Item *i, Item **ii) { i->next = *ii; @@ -193,16 +194,7 @@ setmode(const Arg *arg) { } selview = v; - /* - if(selview->form) - return; - */ - selview->mode->func(); - - if(!selview->form) { - viewprev(NULL); - status("%s: cannot load the mode.", m->name); - } + v->mode->func(); } void