KPMCore: drop conditional code
This commit is contained in:
parent
ca037af6ca
commit
96c3f7def3
@ -116,9 +116,7 @@ createNewPartition( PartitionNode* parent,
|
|||||||
PartitionTable::Flags flags )
|
PartitionTable::Flags flags )
|
||||||
{
|
{
|
||||||
FileSystem* fs = FileSystemFactory::create( fsType, firstSector, lastSector
|
FileSystem* fs = FileSystemFactory::create( fsType, firstSector, lastSector
|
||||||
#ifdef WITH_KPMCORE22
|
|
||||||
,device.logicalSize()
|
,device.logicalSize()
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
return new Partition(
|
return new Partition(
|
||||||
parent,
|
parent,
|
||||||
@ -153,9 +151,7 @@ createNewEncryptedPartition( PartitionNode* parent,
|
|||||||
FileSystemFactory::create( FileSystem::Luks,
|
FileSystemFactory::create( FileSystem::Luks,
|
||||||
firstSector,
|
firstSector,
|
||||||
lastSector
|
lastSector
|
||||||
#ifdef WITH_KPMCORE22
|
|
||||||
,device.logicalSize()
|
,device.logicalSize()
|
||||||
#endif
|
|
||||||
) );
|
) );
|
||||||
if ( !fs )
|
if ( !fs )
|
||||||
{
|
{
|
||||||
@ -186,9 +182,7 @@ clonePartition( Device* device, Partition* partition )
|
|||||||
partition->fileSystem().type(),
|
partition->fileSystem().type(),
|
||||||
partition->firstSector(),
|
partition->firstSector(),
|
||||||
partition->lastSector()
|
partition->lastSector()
|
||||||
#ifdef WITH_KPMCORE22
|
|
||||||
,device->logicalSize()
|
,device->logicalSize()
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
return new Partition( partition->parent(),
|
return new Partition( partition->parent(),
|
||||||
*device,
|
*device,
|
||||||
|
@ -219,9 +219,7 @@ PartitionJobTests::newCreatePartitionJob( Partition* freeSpacePartition, Partiti
|
|||||||
else
|
else
|
||||||
lastSector = freeSpacePartition->lastSector();
|
lastSector = freeSpacePartition->lastSector();
|
||||||
FileSystem* fs = FileSystemFactory::create( type, firstSector, lastSector
|
FileSystem* fs = FileSystemFactory::create( type, firstSector, lastSector
|
||||||
#ifdef WITH_KPMCORE22
|
|
||||||
,m_device->logicalSize()
|
,m_device->logicalSize()
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
|
|
||||||
Partition* partition = new Partition(
|
Partition* partition = new Partition(
|
||||||
|
Loading…
Reference in New Issue
Block a user