Stop providing a default for FileSystem::resize() fill_partition argument
FileSystem::resize() (and derived) is only ever called from a single location and always with the fill_partition argument supplied [1]. Therefore providing a default for the argument is unnecessary. So remove it. [1] Since these two commits from 2006-06-17, before GParted 0.3.0, which added resize_filesystem() and maximize_filesystem() methods to wrap calls to p_filesystem->resize() into a single location:08245cd08c
cleanups in the core and the fs'es (resize)2d7fb5700b
more cleanups in the core and the fs'es (these changelogs are getting
This commit is contained in:
parent
8979913a3f
commit
029a8eb19d
|
@ -69,8 +69,8 @@ public:
|
||||||
virtual bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) { return false; };
|
virtual bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) { return false; };
|
||||||
virtual bool create( const Partition & new_partition, OperationDetail & operationdetail ) { return false; };
|
virtual bool create( const Partition & new_partition, OperationDetail & operationdetail ) { return false; };
|
||||||
virtual bool resize( const Partition & partition_new,
|
virtual bool resize( const Partition & partition_new,
|
||||||
OperationDetail & operationdetail,
|
OperationDetail & operationdetail,
|
||||||
bool fill_partition = false ) { return false; };
|
bool fill_partition ) { return false; };
|
||||||
virtual bool move( const Partition & partition_new
|
virtual bool move( const Partition & partition_new
|
||||||
, const Partition & partition_old
|
, const Partition & partition_old
|
||||||
, OperationDetail & operationdetail
|
, OperationDetail & operationdetail
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail );
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail );
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
|
|
||||||
static void clear_cache() ;
|
static void clear_cache() ;
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool move( const Partition & partition_new,
|
bool move( const Partition & partition_new,
|
||||||
const Partition & partition_old,
|
const Partition & partition_old,
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool move( const Partition & partition_new
|
bool move( const Partition & partition_new
|
||||||
, const Partition & partition_old
|
, const Partition & partition_old
|
||||||
, OperationDetail & operationdetail
|
, OperationDetail & operationdetail
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
bool is_busy( const Glib::ustring & path ) ;
|
bool is_busy( const Glib::ustring & path ) ;
|
||||||
void set_used_sectors( Partition & partition ) ;
|
void set_used_sectors( Partition & partition ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool remove( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool remove( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
};
|
};
|
||||||
|
|
||||||
} //GParted
|
} //GParted
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool copy( const Partition & src_part,
|
bool copy( const Partition & src_part,
|
||||||
Partition & dest_part,
|
Partition & dest_part,
|
||||||
OperationDetail & operationdetail ) ;
|
OperationDetail & operationdetail ) ;
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ public:
|
||||||
void read_uuid( Partition & partition ) ;
|
void read_uuid( Partition & partition ) ;
|
||||||
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||||
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
||||||
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition );
|
||||||
bool copy( const Partition & src_part,
|
bool copy( const Partition & src_part,
|
||||||
Partition & dest_part,
|
Partition & dest_part,
|
||||||
OperationDetail & operationdetail ) ;
|
OperationDetail & operationdetail ) ;
|
||||||
|
|
Loading…
Reference in New Issue