Skip to content

Commit ff41eb5

Browse files
committed
Remove more StringGrid usage
Signed-off-by: Dan Bailey <danbailey@ilm.com>
1 parent d011b16 commit ff41eb5

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

doc/examplecode.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,6 @@ void processTypedGrid(openvdb::GridBase::Ptr grid, OpType& op)
11991199
else if (grid->isType<openvdb::Vec3IGrid>()) CALL_OP(openvdb::Vec3IGrid);
12001200
else if (grid->isType<openvdb::Vec3SGrid>()) CALL_OP(openvdb::Vec3SGrid);
12011201
else if (grid->isType<openvdb::Vec3DGrid>()) CALL_OP(openvdb::Vec3DGrid);
1202-
else if (grid->isType<openvdb::StringGrid>()) CALL_OP(openvdb::StringGrid);
12031202

12041203
#undef CALL_OP
12051204
}
@@ -1221,11 +1220,6 @@ struct PruneOp {
12211220
{
12221221
grid->tree().prune(typename GridType::ValueType(tolerance));
12231222
}
1224-
// Overload to handle string-valued grids
1225-
void operator()(openvdb::StringGrid::Ptr grid) const
1226-
{
1227-
grid->tree().prune();
1228-
}
12291223
};
12301224

12311225
// Read all grids from a file.

openvdb/openvdb/openvdb.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ initialize()
7878
GridBase::clearRegistry();
7979
GridTypes::foreach<RegisterGrid>();
8080

81-
// @note String grids types are deprecated but we still register them
82-
// as supported serializable types for backward compatibility. This
83-
// will likely be removed in a future major version
84-
OPENVDB_NO_DEPRECATION_WARNING_BEGIN
85-
StringGrid::registerGrid();
86-
OPENVDB_NO_DEPRECATION_WARNING_END
87-
8881
// Register types associated with point index grids.
8982
Metadata::registerType(typeNameAsString<PointIndex32>(), Int32Metadata::createMetadata);
9083
Metadata::registerType(typeNameAsString<PointIndex64>(), Int64Metadata::createMetadata);

0 commit comments

Comments
 (0)