From fd18e83ae79760f7e8cca6f28b6d0f89d912b152 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Wed, 26 Nov 2025 12:40:03 +0100 Subject: [PATCH] [VecOps] Remove outdated `IsSmall` helper function in tests The commit 2605710bea7b1 changed from using the `ROOT::Detail::VecOps::` namespace explicitly for `IsSmall` to a `using` statement. However, there was also a remnant `IsSmall` function with an outdated implementation in the test file itself, which we can now remove. --- math/vecops/test/vecops_rvec.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/math/vecops/test/vecops_rvec.cxx b/math/vecops/test/vecops_rvec.cxx index 034f06ca211..432c673a553 100644 --- a/math/vecops/test/vecops_rvec.cxx +++ b/math/vecops/test/vecops_rvec.cxx @@ -1493,13 +1493,6 @@ TEST(VecOps, Construct) EXPECT_TRUE(fourVects[2] == ref2); } -bool IsSmall(const RVec &v) -{ - // the first array element is right after the 3 data members of SmallVectorBase - return reinterpret_cast(v.begin()) - reinterpret_cast(&v) == - sizeof(void *) + 2 * sizeof(int); -} - // this is a regression test for https://github.com/root-project/root/issues/6796 TEST(VecOps, MemoryAdoptionAndClear) { -- 2.52.0