billiob pushed a commit to branch master.

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

commit 45539d433c5f723c11dd51f4d0d740fe24665dc3
Author: Boris Faure <bill...@gmail.com>
Date:   Tue Dec 6 23:49:03 2016 +0100

    termio: small cleanup
---
 src/bin/termio.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index e17f263..17f0b75 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -5098,16 +5098,8 @@ _smart_size(Evas_Object *obj, int w, int h, Eina_Bool 
force)
    Termio *sd = evas_object_smart_data_get(obj);
    EINA_SAFETY_ON_NULL_RETURN(sd);
 
-   if (w <= 1) 
-     {
-        h = 24;
-        w = 80;
-     }
-   else if (h <= 1)
-     {
-        h = 24;
-        w = 80;
-     }
+   if (w <= 1) w = 80;
+   if (h <= 1) h = 24;
 
    if (!force)
      {

-- 


Reply via email to