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
This commit is contained in:
Mike Fleetwood 2015-01-29 12:50:16 +00:00 committed by Curtis Gedak
parent e1dc89cd11
commit b278782ef6
1 changed files with 9 additions and 12 deletions

View File

@ -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