more todo!() removal

This commit is contained in:
Henry Schimke
2023-03-28 16:46:36 -05:00
parent 74a459f65a
commit 517b23b481
4 changed files with 63 additions and 18 deletions

View File

@@ -16,6 +16,16 @@ use crate::Exceptions;
// }
impl Version {
pub fn FromDimension(dimension: u32) -> Result<VersionRef> {
todo!()
// bool isMicro = dimension < 21;
// if (dimension % DimensionStep(isMicro) != 1) {
// //throw std::invalid_argument("Unexpected dimension");
// return nullptr;
// }
// return FromNumber((dimension - DimensionOffset(isMicro)) / DimensionStep(isMicro), isMicro);
}
pub fn DimensionOfVersion(version: u32, is_micro: bool) -> u32 {
Self::DimensionOffset(is_micro) + Self::DimensionStep(is_micro) * version
}