From bdc24d36ff441ead8b64467db18dae3561bbdcae Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Thu, 3 Oct 2024 07:23:09 -0700 Subject: [PATCH] Fix some statements without effect in test. Looks like some copy/pasted leftover from some older code not needed anymore ? --- verilog/tools/ls/symbol-table-handler_test.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/verilog/tools/ls/symbol-table-handler_test.cc b/verilog/tools/ls/symbol-table-handler_test.cc index 8892e17db..d866001fb 100644 --- a/verilog/tools/ls/symbol-table-handler_test.cc +++ b/verilog/tools/ls/symbol-table-handler_test.cc @@ -14,7 +14,6 @@ #include "verilog/tools/ls/symbol-table-handler.h" -#include #include #include #include @@ -240,7 +239,6 @@ TEST(SymbolTableHandlerTest, parameters.position.line = 1; parameters.position.character = 11; - std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string(); std::shared_ptr project = std::make_shared( sources_dir, std::vector(), ""); SymbolTableHandler symbol_table_handler; @@ -290,7 +288,6 @@ TEST(SymbolTableHandlerTest, parameters.position.line = 3; // pointing to 'vara' parameters.position.character = 5; - std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string(); std::shared_ptr project = std::make_shared( sources_dir, std::vector(), ""); SymbolTableHandler symbol_table_handler; @@ -340,7 +337,6 @@ TEST(SymbolTableHandlerTest, FindRenamableRangeAtCursorReturnsLocation) { parameters.position.line = 1; parameters.position.character = 11; - std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string(); std::shared_ptr project = std::make_shared( sources_dir, std::vector(), ""); SymbolTableHandler symbol_table_handler; @@ -392,7 +388,6 @@ TEST(SymbolTableHandlerTest, parameters.position.character = 11; parameters.newName = "aaa"; - std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string(); std::shared_ptr project = std::make_shared( sources_dir, std::vector(), ""); SymbolTableHandler symbol_table_handler; @@ -445,7 +440,6 @@ TEST(SymbolTableHandlerTest, parameters.position.character = 11; parameters.newName = "aaa"; - std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string(); std::shared_ptr project = std::make_shared( sources_dir, std::vector(), ""); SymbolTableHandler symbol_table_handler; @@ -494,7 +488,6 @@ TEST(SymbolTableHandlerTest, UpdateWithUnparseableEditorContentRegression) { const verible::file::testing::ScopedTestFile filelist( sources_dir, filelist_content, "verible.filelist"); const std::string uri = verible::lsp::PathToLSPUri(sources_dir + "/a.sv"); - std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string(); std::shared_ptr project = std::make_shared( sources_dir, std::vector(), ""); SymbolTableHandler symbol_table_handler;