diff options
author | unexge <[email protected]> | 2020-08-16 14:25:10 +0100 |
---|---|---|
committer | unexge <[email protected]> | 2020-08-20 19:34:53 +0100 |
commit | 0847bc801eab10ec32792fdc546007a8a1cfbdde (patch) | |
tree | da2fcd7efce9586d94cfd941b0f498fc0fcce923 /crates/assists/src/assist_context.rs | |
parent | 11d048af03e0d9e07c5c67c9a644af5fbf94ed57 (diff) |
Use `Definition::find_usages` for finding used items in expand glob import
Diffstat (limited to 'crates/assists/src/assist_context.rs')
-rw-r--r-- | crates/assists/src/assist_context.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/assists/src/assist_context.rs b/crates/assists/src/assist_context.rs index 11c171fc2..bf520069e 100644 --- a/crates/assists/src/assist_context.rs +++ b/crates/assists/src/assist_context.rs | |||
@@ -73,10 +73,6 @@ impl<'a> AssistContext<'a> { | |||
73 | self.sema.db | 73 | self.sema.db |
74 | } | 74 | } |
75 | 75 | ||
76 | pub(crate) fn source_file(&self) -> &SourceFile { | ||
77 | &self.source_file | ||
78 | } | ||
79 | |||
80 | // NB, this ignores active selection. | 76 | // NB, this ignores active selection. |
81 | pub(crate) fn offset(&self) -> TextSize { | 77 | pub(crate) fn offset(&self) -> TextSize { |
82 | self.frange.range.start() | 78 | self.frange.range.start() |