[glom] TranslatableItem: Avoid a duplicate else.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] TranslatableItem: Avoid a duplicate else.
- Date: Thu, 4 Dec 2014 13:09:24 +0000 (UTC)
commit 0584b2a2a68b1d57bd506d6a00bf5db8d5ab91ba
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Dec 4 14:08:16 2014 +0100
TranslatableItem: Avoid a duplicate else.
get_translatable_type_name_nontranslated(): Don't check twice for
TRANSLATABLE_TYPE_CUSTOM_TITLE.
Foud by Coverity Scan as unreachable code.
glom/libglom/data_structure/translatable_item.cc | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/glom/libglom/data_structure/translatable_item.cc
b/glom/libglom/data_structure/translatable_item.cc
index e8b55ab..16435a2 100644
--- a/glom/libglom/data_structure/translatable_item.cc
+++ b/glom/libglom/data_structure/translatable_item.cc
@@ -206,8 +206,6 @@ Glib::ustring TranslatableItem::get_translatable_type_name_nontranslated(enumTra
return "Table";
else if(item_type == TRANSLATABLE_TYPE_LAYOUT_ITEM)
return "Layout Group";
- else if(item_type == TRANSLATABLE_TYPE_CUSTOM_TITLE)
- return "Field Title";
else if(item_type == TRANSLATABLE_TYPE_BUTTON)
return "Button";
else if(item_type == TRANSLATABLE_TYPE_TEXTOBJECT)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]