Skip to content

Commit

Permalink
Deleting GetSchemaPrimSpec
Browse files Browse the repository at this point in the history
(Internal change: 2092276)
  • Loading branch information
pixar-oss committed Aug 21, 2020
1 parent 16a59ef commit 0e3171a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
8 changes: 0 additions & 8 deletions pxr/usd/usd/primDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@ class UsdPrimDefinition
return SdfSpecTypeUnknown;
}

/// \deprecated Please use the API on UsdPrimDefinition itself to inquire
/// about metadata and properties.
///
/// Returns the prim spec in the registered schematics that represents this
/// prim definition's prim type. This will be null for invalid prim types
/// or definitions composed for a prim with applied API schemas.
SdfPrimSpecHandle GetSchemaPrimSpec() const { return _primSpec; }

/// Return the property spec that defines the fallback for the property
/// named \a propName on prims of this prim definition's type. Return null
/// if there is no such property spec.
Expand Down
10 changes: 0 additions & 10 deletions pxr/usd/usd/testenv/testUsdSchemaRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ def test_PrimMetadata(self):
self.assertEqual(primDef.GetDocumentation(),
"Testing documentation metadata")

primSpec = primDef.GetSchemaPrimSpec()
self.assertEqual(primSpec.GetInfo("documentation"),
"Testing documentation metadata")
self.assertEqual(primSpec.GetInfo("hidden"), True)
self.assertEqual(primSpec.GetInfo("testCustomMetadata"), "garply")

def test_AttributeMetadata(self):
primDef = Usd.SchemaRegistry().FindConcretePrimDefinition(
"MetadataTest")
Expand Down Expand Up @@ -218,8 +212,6 @@ def test_FindConcretePrimDefinition(self):
primDef = Usd.SchemaRegistry().FindConcretePrimDefinition(
'MetadataTest')
self.assertTrue(primDef)
# Prim def has schema spec with USD type name.
self.assertEqual(primDef.GetSchemaPrimSpec().name, 'MetadataTest')

# Prim def has built in property names.
self.assertEqual(primDef.GetPropertyNames(), ['testAttr', 'testRel'])
Expand Down Expand Up @@ -248,8 +240,6 @@ def test_FindAppliedAPIPrimDefinition(self):
primDef = Usd.SchemaRegistry().FindAppliedAPIPrimDefinition(
'CollectionAPI')
self.assertTrue(primDef)
# Prim def has schema spec with USD type name.
self.assertEqual(primDef.GetSchemaPrimSpec().name, 'CollectionAPI')

# Prim def has built in property names.
self.assertEqual(primDef.GetPropertyNames(),
Expand Down
1 change: 0 additions & 1 deletion pxr/usd/usd/wrapPrimDefinition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ void wrapUsdPrimDefinition()
return_value_policy<TfPySequenceToList>())
.def("GetAppliedAPISchemas", &This::GetAppliedAPISchemas,
return_value_policy<TfPySequenceToList>())
.def("GetSchemaPrimSpec", &This::GetSchemaPrimSpec)
.def("GetSchemaPropertySpec", &This::GetSchemaPropertySpec,
(arg("propName")))
.def("GetSchemaAttributeSpec", &This::GetSchemaAttributeSpec,
Expand Down

0 comments on commit 0e3171a

Please sign in to comment.