Skip to content

Commit 7a53b52

Browse files
refactor: remove unused methods and traits
- Remove unused method() from Handler trait in lsp-async-stub - Remove unused syntax() method from FormattedItem trait - Clean up trait implementations and improve code organization
1 parent 93cb6aa commit 7a53b52

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

crates/lsp-async-stub/src/handler.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use std::marker::PhantomData;
88

99
#[async_trait(?Send)]
1010
pub(crate) trait Handler<W: Clone> {
11-
fn method(&self) -> &'static str;
12-
1311
async fn handle(
1412
&mut self,
1513
context: Context<W>,
@@ -72,10 +70,6 @@ where
7270
F: Future<Output = Result<R::Result, rpc::Error>> + 'static,
7371
W: Clone + 'static,
7472
{
75-
fn method(&self) -> &'static str {
76-
R::METHOD
77-
}
78-
7973
async fn handle(
8074
&mut self,
8175
context: Context<W>,
@@ -160,10 +154,6 @@ where
160154
F: Future + 'static,
161155
W: Clone + 'static,
162156
{
163-
fn method(&self) -> &'static str {
164-
N::METHOD
165-
}
166-
167157
async fn handle(
168158
&mut self,
169159
context: Context<W>,

0 commit comments

Comments
 (0)