remove no-op macros and dead code (pt 2) (#8035)

* remove no-op macros and dead code (pt 2)

* test failures due to whitespace changes?

* actually run the testFeatures tests

---------

Co-authored-by: greg landrum <greg.landrum@gmail.com>
This commit is contained in:
Hussein Faara
2025-01-11 05:10:00 -08:00
committed by GitHub
parent 41a2a79fa8
commit 8411f4535e
19 changed files with 78 additions and 435 deletions

View File

@@ -491,29 +491,6 @@ void testConstReturns() {
TEST_ASSERT(nv == "foo");
}
#if 0
{
Dict d;
std::string v="foo";
d.setVal("foo",v);
double ls=0;
BOOST_LOG(rdErrorLog) << "copy" << std::endl;
for(int i=0;i<100000000;++i){
std::string nv=d.getVal<std::string>("foo");
ls+= nv.size();
}
BOOST_LOG(rdErrorLog) << "done: "<<ls << std::endl;
ls=0;
BOOST_LOG(rdErrorLog) << "ref" << std::endl;
for(int i=0;i<100000000;++i){
const std::string &nv=d.getVal<std::string>("foo");
ls+= nv.size();
}
BOOST_LOG(rdErrorLog) << "done: "<<ls << std::endl;
//std::string nv=d.getVal<std::string>("foo");
}
#else
{
// int nreps=100000000;
int nreps = 100000;
@@ -590,8 +567,6 @@ void testConstReturns() {
// std::string nv=d.getVal<std::string>("foo");
}
#endif
BOOST_LOG(rdErrorLog) << "\tdone" << std::endl;
}
@@ -726,7 +701,6 @@ int main() {
RDLog::InitLogs();
testGithub940();
#if 1
testRDAny();
Dict d;
INT_VECT fooV;
@@ -812,7 +786,6 @@ int main() {
testStringVals();
testVectToString();
#endif
testConstReturns();
testUpdate();
testCustomProps();