From 1a9d669af8bc1569a9bec8c8c878dfae4edc16fe Mon Sep 17 00:00:00 2001 From: "xiarui.xr" Date: Fri, 13 Oct 2023 18:11:22 +0800 Subject: [PATCH] chore: code clean Signed-off-by: xiarui.xr --- kclvm/tools/src/LSP/src/find_refs.rs | 5 ----- kclvm/tools/src/LSP/src/goto_def.rs | 4 ---- 2 files changed, 9 deletions(-) diff --git a/kclvm/tools/src/LSP/src/find_refs.rs b/kclvm/tools/src/LSP/src/find_refs.rs index e6f079eb7..1ddf1db0f 100644 --- a/kclvm/tools/src/LSP/src/find_refs.rs +++ b/kclvm/tools/src/LSP/src/find_refs.rs @@ -253,9 +253,4 @@ mod tests { Err(_) => assert!(false, "file not found"), } } - - #[test] - fn find_refs_from_none_kpm_package() { - - } } diff --git a/kclvm/tools/src/LSP/src/goto_def.rs b/kclvm/tools/src/LSP/src/goto_def.rs index 810b19a8b..c5a243db4 100644 --- a/kclvm/tools/src/LSP/src/goto_def.rs +++ b/kclvm/tools/src/LSP/src/goto_def.rs @@ -1003,8 +1003,6 @@ mod tests { #[test] #[bench_test] fn complex_select_goto_def() { - let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - let (file, program, prog_scope, _) = compile_test_file("src/test_data/goto_def_test/goto_def.k"); @@ -1021,8 +1019,6 @@ mod tests { #[test] #[bench_test] fn schema_attribute_def_goto_def() { - let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - let (file, program, prog_scope, _) = compile_test_file("src/test_data/goto_def_test/goto_def.k");