Bug #539092: Deletion of unnecessary null pointer checks

A few null pointer checks were deleted because they were not needed any more.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
This commit is contained in:
Markus Elfring 2010-06-24 17:36:20 +02:00 committed by Curtis Gedak
parent 02af76c1ef
commit 1e2562adda
3 changed files with 5 additions and 10 deletions

View File

@ -344,8 +344,7 @@ void Dialog_Base_Partition::Check_Change()
Dialog_Base_Partition::~Dialog_Base_Partition()
{
if ( frame_resizer_base )
delete frame_resizer_base ;
delete frame_resizer_base;
}
} //GParted

View File

@ -435,8 +435,6 @@ Frame_Resizer_Base::~Frame_Resizer_Base()
this ->get_colormap() ->free_colors( color_partition, 1 ) ;
this ->get_colormap() ->free_colors( color_arrow_rectangle, 1 ) ;
if ( cursor_resize )
delete cursor_resize ;
if ( cursor_move )
delete cursor_move ;
delete cursor_resize;
delete cursor_move;
}

View File

@ -2868,8 +2868,7 @@ bool GParted_Core::calculate_exact_geom( const Partition & partition_old,
bool GParted_Core::set_proper_filesystem( const FILESYSTEM & filesystem )
{
if ( p_filesystem )
delete p_filesystem ;
delete p_filesystem;
switch( filesystem )
{
@ -3112,8 +3111,7 @@ PedExceptionOption GParted_Core::ped_exception_handler( PedException * e )
GParted_Core::~GParted_Core()
{
if ( p_filesystem )
delete p_filesystem ;
delete p_filesystem;
}
} //GParted