minor: Remove unused code

This commit is contained in:
Lukas Wirth 2022-05-31 20:21:50 +02:00
parent 0327df224b
commit 1234d8647f
2 changed files with 0 additions and 18 deletions

View file

@ -383,7 +383,6 @@ impl<'a> CompletionContext<'a> {
// FIXME: This shouldn't exist
pub(crate) fn is_path_disallowed(&self) -> bool {
!self.qualifier_ctx.none()
|| matches!(self.prev_sibling, Some(ImmediatePrevSibling::Visibility))
|| (matches!(self.name_ctx(), Some(NameContext { .. })) && self.pattern_ctx.is_none())
|| matches!(self.pattern_ctx, Some(PatternContext { record_pat: Some(_), .. }))
|| matches!(