From: Kefu Chai Date: Wed, 26 Mar 2025 02:51:32 +0000 (+0800) Subject: test/ObjectMap: Remove unused CONTROL_PREFIX variable X-Git-Tag: v20.3.0~164^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=439b1088828bbe354d426103efa397e1867cf783;p=ceph.git 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 --- 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;