This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git

commit 508fa3b2c5d71e25702c6f93d8de4a714114c6fb
Author: Damian Meden <[email protected]>
AuthorDate: Thu May 9 09:31:21 2024 +0200

    libswoc: Remove unused variables from some unit tests. (#11326)
---
 unit_tests/test_TextView.cc | 1 -
 unit_tests/test_ip.cc       | 1 -
 2 files changed, 2 deletions(-)

diff --git a/unit_tests/test_TextView.cc b/unit_tests/test_TextView.cc
index 20c1797..1499594 100644
--- a/unit_tests/test_TextView.cc
+++ b/unit_tests/test_TextView.cc
@@ -400,7 +400,6 @@ TEST_CASE("TextView Affixes", "[libswoc][TextView]") {
 
   // Checking that constexpr works for this constructor as long as npos isn't 
used.
   static constexpr TextView ctv2{"http://delain.nl/albums/Interlude.html";, 38};
-  TextView ctv4{"http://delain.nl/albums/Interlude.html";, 38};
   // This doesn't compile because it causes strlen to be called which isn't 
constexpr compatible.
   // static constexpr TextView ctv3 {"http://delain.nl/albums/Interlude.html";, 
TextView::npos};
   // This works because it's not constexpr.
diff --git a/unit_tests/test_ip.cc b/unit_tests/test_ip.cc
index 7fc0fd9..35e25b1 100644
--- a/unit_tests/test_ip.cc
+++ b/unit_tests/test_ip.cc
@@ -1249,7 +1249,6 @@ TEST_CASE("IPSpace Edge", "[libswoc][ipspace][edge]") {
 
   auto spot = cspace.find(a1);
   static_assert(std::is_same_v<Space::const_iterator, decltype(spot)>);
-  auto &v1 = *spot;
 
   auto const iter = cspace.find(a1);
   if (auto &&[r, p] = *iter; !r.empty()) {

Reply via email to