diff options
-rw-r--r-- | common/rfb/Configuration.cxx | 8 | ||||
-rw-r--r-- | common/rfb/Configuration.h | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/common/rfb/Configuration.cxx b/common/rfb/Configuration.cxx index 87271b66..8ef09446 100644 --- a/common/rfb/Configuration.cxx +++ b/common/rfb/Configuration.cxx @@ -79,14 +79,6 @@ Configuration* Configuration::viewer() { // -=- Configuration implementation -Configuration::Configuration(const char* name_, Configuration* attachToGroup) -: name(strDup(name_)), head(0), _next(0) { - if (attachToGroup) { - _next = attachToGroup->_next; - attachToGroup->_next = this; - } -} - Configuration& Configuration::operator=(const Configuration& src) { VoidParameter* current = head; while (current) { diff --git a/common/rfb/Configuration.h b/common/rfb/Configuration.h index 35e31fc0..842adc9c 100644 --- a/common/rfb/Configuration.h +++ b/common/rfb/Configuration.h @@ -57,7 +57,7 @@ namespace rfb { class Configuration { public: // - Create a new Configuration object - Configuration(const char* name, Configuration* attachToGroup=0); + Configuration(const char* name_) : name(strDup(name_)), head(0), _next(0) {} // - Return the buffer containing the Configuration's name const char* getName() const { return name.buf; } |