File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
cedar-policy-core/src/ast Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -355,13 +355,6 @@ impl Entity {
355
355
} )
356
356
}
357
357
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
-
365
358
/// Create a new `Entity` with this UID, attributes, and ancestors.
366
359
///
367
360
/// Unlike in `Entity::new()`, in this constructor, attributes are expressed
Original file line number Diff line number Diff line change @@ -97,16 +97,6 @@ impl Entity {
97
97
) ?) )
98
98
}
99
99
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
-
110
100
/// Create a new `Entity` with no attributes.
111
101
///
112
102
/// Unlike [`Entity::new()`], this constructor cannot error.
You can’t perform that action at this time.
0 commit comments