From 42f47e483da19079a937c4801ca94bd62d8dc970 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Aug 2017 22:44:29 +0300 Subject: Remove useless else. --- src/gui/fonts/font.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/fonts/font.cpp') diff --git a/src/gui/fonts/font.cpp b/src/gui/fonts/font.cpp index 78c243a70..a2919481c 100644 --- a/src/gui/fonts/font.cpp +++ b/src/gui/fonts/font.cpp @@ -347,8 +347,7 @@ int Font::getWidth(const std::string &text) const const Image *const image = chunk->img; if (image != nullptr) return image->getWidth(); - else - return 0; + return 0; } // if string was not drawed -- cgit v1.2.3-70-g09d2