summaryrefslogtreecommitdiff
path: root/src/driver.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-11 12:46:28 +0000
committersmatz <smatz@openttd.org>2008-06-11 12:46:28 +0000
commitdc5ceacd77b490ea7b1c719753704a744a80377c (patch)
treef8aef9d33266637361443498b353b9be94545638 /src/driver.h
parentbd5067b5a0705cd6bef891d2bbfed8d78616d5a6 (diff)
downloadopenttd-dc5ceacd77b490ea7b1c719753704a744a80377c.tar.xz
(svn r13462) -Codechange: move DriverFactoryBase destructor definition from header file (saves ~16kB)
Diffstat (limited to 'src/driver.h')
-rw-r--r--src/driver.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/driver.h b/src/driver.h
index 572e10cb0..af98e0fa5 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -67,20 +67,7 @@ public:
name(NULL)
{}
- /** Frees memory used for this->name
- */
- virtual ~DriverFactoryBase() {
- if (this->name == NULL) return;
-
- /* Prefix the name with driver type to make it unique */
- char buf[32];
- strecpy(buf, GetDriverTypeName(type), lastof(buf));
- strecpy(buf + 5, this->name, lastof(buf));
-
- GetDrivers().erase(buf);
- if (GetDrivers().empty()) delete &GetDrivers();
- free(this->name);
- }
+ virtual ~DriverFactoryBase();
/** Shuts down all active drivers
*/