From 439b1088828bbe354d426103efa397e1867cf783 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 26 Mar 2025 10:51:32 +0800 Subject: [PATCH] test/ObjectMap: Remove unused CONTROL_PREFIX variable The `CONTROL_PREFIX` constant in `test_keyvaluedb_atomicity.cc` has never been used since its introduction in commit 6a624b960a. Clang's warning highlights the unused variable: ``` warning: unused variable 'CONTROL_PREFIX' [-Wunused-const-variable] ``` Remove the unnecessary constant to clean up the code and eliminate the compiler warning. Refs 6a624b960a Signed-off-by: Kefu Chai --- src/test/ObjectMap/test_keyvaluedb_atomicity.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/ObjectMap/test_keyvaluedb_atomicity.cc b/src/test/ObjectMap/test_keyvaluedb_atomicity.cc index 96d8ce81b41c..e78073807b36 100644 --- a/src/test/ObjectMap/test_keyvaluedb_atomicity.cc +++ b/src/test/ObjectMap/test_keyvaluedb_atomicity.cc @@ -15,7 +15,6 @@ using namespace std; -const string CONTROL_PREFIX = "CONTROL"; const string PRIMARY_PREFIX = "PREFIX"; const int NUM_COPIES = 100; const int NUM_THREADS = 30; -- 2.47.3