From 41a6e78ff1aba270d3436d3752208f286de32051 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 25 Jul 2014 18:32:24 +0000 Subject: [PATCH] Remove incorrect comments from 'newTransportMgr' functions --- src/transport/TransportFactory.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/transport/TransportFactory.cpp b/src/transport/TransportFactory.cpp index ef85e315f..b53a22714 100644 --- a/src/transport/TransportFactory.cpp +++ b/src/transport/TransportFactory.cpp @@ -1350,14 +1350,7 @@ Transport* newTransportMgr(const std::string& transportModel, thermo_t* thermo, if (f == 0) { f = TransportFactory::factory(); } - Transport* ptr = f->newTransport(transportModel, thermo, loglevel, ndim); - /* - * Note: We delete the static s_factory instance here, instead of in - * appdelete() in misc.cpp, to avoid linking problems involving - * the need for multiple cantera and transport library statements - * for applications that don't have transport in them. - */ - return ptr; + return f->newTransport(transportModel, thermo, loglevel, ndim); } Transport* newDefaultTransportMgr(thermo_t* thermo, int loglevel, TransportFactory* f) @@ -1365,13 +1358,6 @@ Transport* newDefaultTransportMgr(thermo_t* thermo, int loglevel, TransportFacto if (f == 0) { f = TransportFactory::factory(); } - Transport* ptr = f->newTransport(thermo, loglevel); - /* - * Note: We delete the static s_factory instance here, instead of in - * appdelete() in misc.cpp, to avoid linking problems involving - * the need for multiple cantera and transport library statements - * for applications that don't have transport in them. - */ - return ptr; + return f->newTransport(thermo, loglevel); } }