Remove deprecated constructor
This commit is contained in:
parent
c681fac66a
commit
d79b1006f3
@ -255,11 +255,6 @@ namespace PolyVox
|
||||
bool bPagingEnabled = false,
|
||||
uint16_t uBlockSideLength = 32
|
||||
);
|
||||
/// Deprecated constructor - do not use.
|
||||
LargeVolume
|
||||
(
|
||||
int32_t dont_use_this_constructor_1, int32_t dont_use_this_constructor_2, int32_t dont_use_this_constructor_3
|
||||
);
|
||||
/// Destructor
|
||||
~LargeVolume();
|
||||
|
||||
|
@ -48,27 +48,6 @@ namespace PolyVox
|
||||
initialise(Region::MaxRegion,uBlockSideLength);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// Deprecated - do not use this constructor.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
template <typename VoxelType>
|
||||
LargeVolume<VoxelType>::LargeVolume
|
||||
(
|
||||
int32_t dont_use_this_constructor_1, int32_t dont_use_this_constructor_2, int32_t dont_use_this_constructor_3
|
||||
)
|
||||
{
|
||||
//In earlier verions of PolyVox the constructor took three values indicating width, height, and depth. However, this
|
||||
//causes confusion because these three parameters can be interpreted as two function pointers and a block size instead,
|
||||
//hence calling a different constructor. And simply removing this constructor will cause confusion because existing
|
||||
//code with three parameters will then always resolve to the constructor with two function pointers and a block size.
|
||||
//
|
||||
//Eventually this constructor will be removed, it's just here to make people change their code to the new version.
|
||||
//
|
||||
//IF YOU HIT THIS ASSERT/ABORT, CHANGE YOUR CODE TO USE THE CONSTRUCTOR TAKING A 'Region' INSTEAD.
|
||||
assert(false);
|
||||
abort();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// This constructor creates a volume with a fixed size which is specified as a parameter. By default this constructor will not enable paging but you can override this if desired. If you do wish to enable paging then you are required to provide the call back function (see the other LargeVolume constructor).
|
||||
/// \param regValid Specifies the minimum and maximum valid voxel positions.
|
||||
|
@ -145,11 +145,6 @@ namespace PolyVox
|
||||
const Region& regValid,
|
||||
uint16_t uBlockSideLength = 32
|
||||
);
|
||||
/// Deprecated constructor - do not use.
|
||||
SimpleVolume
|
||||
(
|
||||
int32_t dont_use_this_constructor_1, int32_t dont_use_this_constructor_2, int32_t dont_use_this_constructor_3
|
||||
);
|
||||
/// Destructor
|
||||
~SimpleVolume();
|
||||
|
||||
|
@ -23,27 +23,6 @@ freely, subject to the following restrictions:
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// Deprecated - do not use this constructor.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
template <typename VoxelType>
|
||||
SimpleVolume<VoxelType>::SimpleVolume
|
||||
(
|
||||
int32_t dont_use_this_constructor_1, int32_t dont_use_this_constructor_2, int32_t dont_use_this_constructor_3
|
||||
)
|
||||
{
|
||||
//In earlier verions of PolyVox the constructor took three values indicating width, height, and depth. However, this
|
||||
//causes confusion because these three parameters can be interpreted as two function pointers and a block size instead,
|
||||
//hence calling a different constructor. And simply removing this constructor will cause confusion because existing
|
||||
//code with three parameters will then always resolve to the constructor with two function pointers and a block size.
|
||||
//
|
||||
//Eventually this constructor will be removed, it's just here to make people change their code to the new version.
|
||||
//
|
||||
//IF YOU HIT THIS ASSERT/ABORT, CHANGE YOUR CODE TO USE THE CONSTRUCTOR TAKING A 'Region' INSTEAD.
|
||||
assert(false);
|
||||
abort();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// This constructor creates a volume with a fixed size which is specified as a parameter.
|
||||
/// \param regValid Specifies the minimum and maximum valid voxel positions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user