Skip to content

Commit 85ff652

Browse files
author
Aaron Eline
authored
Remove duplicated method (#1205)
Signed-off-by: Aaron Eline <[email protected]>
1 parent a15e77e commit 85ff652

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

cedar-policy-core/src/ast/entity.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,6 @@ impl Entity {
355355
})
356356
}
357357

358-
/// Create a new `Entity` with this UID, ancestors, and an empty set of attributes
359-
///
360-
/// Since there are no attributes, this method does not error, and returns `Self` instead of `Result<Self>`
361-
pub fn new_empty_attrs(uid: EntityUID, ancestors: HashSet<EntityUID>) -> Self {
362-
Self::new_with_attr_partial_value(uid, HashMap::new(), ancestors)
363-
}
364-
365358
/// Create a new `Entity` with this UID, attributes, and ancestors.
366359
///
367360
/// Unlike in `Entity::new()`, in this constructor, attributes are expressed

cedar-policy/src/api.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,6 @@ impl Entity {
9797
)?))
9898
}
9999

100-
/// Create a new `Entity` with this Uid, parents, and no attributes.
101-
/// This is the same as `Self::new` except the attributes are empty, and therefore it can
102-
/// return `Self` instead of `Result<Self>`
103-
pub fn new_empty_attrs(uid: EntityUid, parents: HashSet<EntityUid>) -> Self {
104-
Self(ast::Entity::new_empty_attrs(
105-
uid.into(),
106-
parents.into_iter().map(EntityUid::into).collect(),
107-
))
108-
}
109-
110100
/// Create a new `Entity` with no attributes.
111101
///
112102
/// Unlike [`Entity::new()`], this constructor cannot error.

0 commit comments

Comments
 (0)