@@ -99,7 +99,6 @@ class OPENVDB_API GridBase: public MetaMap
9999 // / transform are deep copies of this grid's and whose tree is default-constructed.
100100 virtual GridBase::Ptr copyGridWithNewTree () const = 0;
101101
102- #if OPENVDB_ABI_VERSION_NUMBER >= 7
103102 // / @brief Return a new grid of the same type as this grid whose tree and transform
104103 // / is shared with this grid and whose metadata is provided as an argument.
105104 virtual GridBase::ConstPtr copyGridReplacingMetadata (const MetaMap& meta) const = 0;
@@ -113,7 +112,6 @@ class OPENVDB_API GridBase: public MetaMap
113112 // / @throw ValueError if the transform pointer is null
114113 virtual GridBase::ConstPtr copyGridReplacingMetadataAndTransform (const MetaMap& meta,
115114 math::Transform::Ptr xform) const = 0;
116- #endif
117115
118116 // / Return a new grid whose metadata, transform and tree are deep copies of this grid's.
119117 virtual GridBase::Ptr deepCopyGrid () const = 0;
@@ -485,11 +483,9 @@ class OPENVDB_API GridBase: public MetaMap
485483 // / @brief Initialize with an identity linear transform.
486484 GridBase (): mTransform (math::Transform::createLinearTransform()) {}
487485
488- #if OPENVDB_ABI_VERSION_NUMBER >= 7
489486 // / @brief Initialize with metadata and a transform.
490487 // / @throw ValueError if the transform pointer is null
491488 GridBase (const MetaMap& meta, math::Transform::Ptr xform);
492- #endif
493489
494490 // / @brief Deep copy another grid's metadata and transform.
495491 GridBase (const GridBase& other): MetaMap(other), mTransform (other.mTransform ->copy ()) {}
@@ -675,7 +671,6 @@ class Grid: public GridBase
675671 // / @name Copying
676672 // / @{
677673
678- #if OPENVDB_ABI_VERSION_NUMBER >= 7
679674 // / @brief Return a new grid of the same type as this grid whose tree and transform
680675 // / is shared with this grid and whose metadata is provided as an argument.
681676 ConstPtr copyReplacingMetadata (const MetaMap& meta) const ;
@@ -703,7 +698,6 @@ class Grid: public GridBase
703698 // / @throw ValueError if the transform pointer is null
704699 GridBase::ConstPtr copyGridReplacingMetadataAndTransform (const MetaMap& meta,
705700 math::Transform::Ptr xform) const override ;
706- #endif
707701
708702 // / @brief Return a new grid whose metadata, transform and tree are deep copies of this grid's.
709703 Ptr deepCopy () const { return Ptr (new Grid (*this )); }
@@ -988,10 +982,8 @@ tools::minMax(grid->tree()). Use threaded = false for serial execution")
988982
989983
990984private:
991- #if OPENVDB_ABI_VERSION_NUMBER >= 7
992985 // / Deep copy metadata, but share tree and transform.
993986 Grid (TreePtrType tree, const MetaMap& meta, math::Transform::Ptr xform);
994- #endif
995987
996988 // / Helper function for use with registerGrid()
997989 static GridBase::Ptr factory () { return Grid::create (); }
@@ -1190,14 +1182,12 @@ struct HasMultiPassIO<Grid<TreeType>> {
11901182
11911183// //////////////////////////////////////
11921184
1193- #if OPENVDB_ABI_VERSION_NUMBER >= 7
11941185inline GridBase::GridBase (const MetaMap& meta, math::Transform::Ptr xform)
11951186 : MetaMap(meta)
11961187 , mTransform(xform)
11971188{
11981189 if (!xform) OPENVDB_THROW (ValueError, " Transform pointer is null" );
11991190}
1200- #endif
12011191
12021192template <typename GridType>
12031193inline typename GridType::Ptr
@@ -1275,15 +1265,13 @@ inline Grid<TreeT>::Grid(TreePtrType tree): mTree(tree)
12751265}
12761266
12771267
1278- #if OPENVDB_ABI_VERSION_NUMBER >= 7
12791268template <typename TreeT>
12801269inline Grid<TreeT>::Grid(TreePtrType tree, const MetaMap& meta, math::Transform::Ptr xform):
12811270 GridBase (meta, xform),
12821271 mTree(tree)
12831272{
12841273 if (!tree) OPENVDB_THROW (ValueError, " Tree pointer is null" );
12851274}
1286- #endif
12871275
12881276
12891277template <typename TreeT>
@@ -1366,7 +1354,6 @@ Grid<TreeT>::copy() const
13661354}
13671355
13681356
1369- #if OPENVDB_ABI_VERSION_NUMBER >= 7
13701357template <typename TreeT>
13711358inline typename Grid<TreeT>::ConstPtr
13721359Grid<TreeT>::copyReplacingMetadata(const MetaMap& meta) const
@@ -1392,7 +1379,6 @@ Grid<TreeT>::copyReplacingMetadataAndTransform(const MetaMap& meta,
13921379 TreePtrType treePtr = ConstPtrCast<TreeT>(this ->constTreePtr ());
13931380 return ConstPtr{new Grid<TreeT>{treePtr, meta, xform}};
13941381}
1395- #endif
13961382
13971383
13981384template <typename TreeT>
@@ -1427,7 +1413,6 @@ Grid<TreeT>::copyGrid() const
14271413 return this ->copy ();
14281414}
14291415
1430- #if OPENVDB_ABI_VERSION_NUMBER >= 7
14311416template <typename TreeT>
14321417inline GridBase::ConstPtr
14331418Grid<TreeT>::copyGridReplacingMetadata(const MetaMap& meta) const
@@ -1449,7 +1434,6 @@ Grid<TreeT>::copyGridReplacingMetadataAndTransform(const MetaMap& meta,
14491434{
14501435 return this ->copyReplacingMetadataAndTransform (meta, xform);
14511436}
1452- #endif
14531437
14541438template <typename TreeT>
14551439inline GridBase::Ptr
0 commit comments