From c33fd6f10c399bb5da7fc7cc1842bcb09a68166f Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Thu, 19 Mar 2026 23:25:22 +0100 Subject: [PATCH] rm redundant field --- tools/server/server-tools.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/server/server-tools.cpp b/tools/server/server-tools.cpp index 7f7d7a6d56..d7c116abd8 100644 --- a/tools/server/server-tools.cpp +++ b/tools/server/server-tools.cpp @@ -140,8 +140,7 @@ static bool glob_match(const std::string & pattern, const std::string & str) { struct server_tool { std::string name; std::string display_name; - json definition; - bool permission_write = false; + bool permission_write = false; virtual ~server_tool() = default; virtual json get_definition() = 0; @@ -592,8 +591,8 @@ struct server_tool_edit_file : server_tool { // validate and collect changes, then sort descending by line_start struct change_entry { std::string mode; - int line_start; // 1-based - int line_end; // 1-based inclusive + int line_start; // 1-based + int line_end; // 1-based inclusive std::string content; }; std::vector entries;