Commit f10362a5 authored by Alex Buts's avatar Alex Buts
Browse files

refs #5742 Comments and useless code rearrangements

parent 24f69020
......@@ -153,6 +153,7 @@ Kernel::Logger& LogManager::g_log = Kernel::Logger::get("LogManager");
//Make a vector of managers for the splitter. Fun!
std::vector< PropertyManager *> output_managers;
size_t n = outputs.size();
output_managers.reserve(n);
for (size_t i=0; i<n; i++)
{
if (outputs[i])
......
......@@ -49,7 +49,14 @@ namespace
run.addProperty(timeSeries);
}
}
void addTimeSeriesEntry(LogManager & runInfo, std::string name, double val)
{
TimeSeriesProperty<double> * tsp;
tsp = new TimeSeriesProperty<double>(name);
tsp->addValue("2011-05-24T00:00:00", val);
runInfo.addProperty(tsp);
}
class LogManagerTest : public CxxTest::TestSuite
{
......@@ -228,16 +235,7 @@ public:
}
void addTimeSeriesEntry(LogManager & runInfo, std::string name, double val)
{
TimeSeriesProperty<double> * tsp;
tsp = new TimeSeriesProperty<double>(name);
tsp->addValue("2011-05-24T00:00:00", val);
runInfo.addProperty(tsp);
}
void test_clear()
{
// Set up a Run object with 3 properties in it (1 time series, 2 single value)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment