Remove dead code

This commit is contained in:
Jonas Schievink 2021-09-03 18:38:34 +02:00
parent 114d6db8f6
commit 7b39882deb

View file

@ -403,7 +403,6 @@ pub(crate) fn query_group(args: TokenStream, input: TokenStream) -> TokenStream
}
});
if query.storage.supports_mut() {}
output.extend(quote! {
impl #qt {
/// Like `in_db`, but gives access to methods for setting the
@ -702,16 +701,4 @@ impl QueryStorage {
QueryStorage::Memoized | QueryStorage::Dependencies => true,
}
}
/// Does this type of query support `&mut` operations?
fn supports_mut(&self) -> bool {
match self {
QueryStorage::Input => true,
QueryStorage::Interned
| QueryStorage::InternedLookup { .. }
| QueryStorage::Transparent
| QueryStorage::Memoized
| QueryStorage::Dependencies => false,
}
}
}