]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/ObjectMap: Remove unused CONTROL_PREFIX variable 62511/head
authorKefu Chai <tchaikov@gmail.com>
Wed, 26 Mar 2025 02:51:32 +0000 (10:51 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 27 Mar 2025 00:03:34 +0000 (08:03 +0800)
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 <tchaikov@gmail.com>
src/test/ObjectMap/test_keyvaluedb_atomicity.cc

index 96d8ce81b41c4379d920d9c4eefdb0cd6aca489f..e78073807b365b60be69fa085e52a2aa50da39fd 100644 (file)
@@ -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;