[gparted] Remove redundant second if condition in Display_Info()
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Remove redundant second if condition in Display_Info()
- Date: Sun, 1 Feb 2015 18:20:16 +0000 (UTC)
commit b278782ef62c5a9aa75d5bab3ee638e12d33fbc8
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Thu Jan 29 12:50:16 2015 +0000
Remove redundant second if condition in Display_Info()
Remove second inner if condition performing the same check as the outer
if:
partition.type != GParted::TYPE_UNALLOCATED
src/Dialog_Partition_Info.cc | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
---
diff --git a/src/Dialog_Partition_Info.cc b/src/Dialog_Partition_Info.cc
index 5264f21..79a49c7 100644
--- a/src/Dialog_Partition_Info.cc
+++ b/src/Dialog_Partition_Info.cc
@@ -512,18 +512,15 @@ void Dialog_Partition_Info::Display_Info()
if ( partition .type != GParted::TYPE_UNALLOCATED && partition .status != GParted::STAT_NEW )
{
- //flags
- if ( partition.type != GParted::TYPE_UNALLOCATED )
- {
- table ->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Flags:") ) + "</b>" ),
- 1, 2,
- top, bottom,
- Gtk::FILL ) ;
- table ->attach( * Utils::mk_label( Glib::build_path( ", ", partition .flags ), true,
false, true ),
- 2, 3,
- top++, bottom++,
- Gtk::FILL ) ;
- }
+ // flags
+ table->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Flags:") ) + "</b>" ),
+ 1, 2,
+ top, bottom,
+ Gtk::FILL );
+ table->attach( * Utils::mk_label( Glib::build_path( ", ", partition .flags ), true, false,
true ),
+ 2, 3,
+ top++, bottom++,
+ Gtk::FILL );
}
//Right field & value pair area
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]