Skip to content

Commit b76b170

Browse files
committed
graph: Remove unused EntityModification::is_remove() and entity()
1 parent a75b9cb commit b76b170

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

graph/src/components/store/write.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -289,21 +289,6 @@ impl EntityModification {
289289
Insert { key, .. } | Overwrite { key, .. } | Remove { key, .. } => key,
290290
}
291291
}
292-
293-
pub fn entity(&self) -> Option<&Entity> {
294-
match self {
295-
EntityModification::Insert { data, .. }
296-
| EntityModification::Overwrite { data, .. } => Some(data),
297-
EntityModification::Remove { .. } => None,
298-
}
299-
}
300-
301-
pub fn is_remove(&self) -> bool {
302-
match self {
303-
EntityModification::Remove { .. } => true,
304-
_ => false,
305-
}
306-
}
307292
}
308293

309294
/// A list of entity changes grouped by the entity type

0 commit comments

Comments
 (0)