diff options
author | Adam Tkac <atkac@redhat.com> | 2013-03-14 15:49:29 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2013-03-14 15:49:29 +0000 |
commit | 6f7f92e0434b5bfd9ede8898be2527bd4b2062c0 (patch) | |
tree | edd5c64c539fb0010fb0a97d3e3149e5df4959e7 | |
parent | 1be0894c20e214f0d40ea64babc2053e77f4f272 (diff) | |
download | tigervnc-6f7f92e0434b5bfd9ede8898be2527bd4b2062c0.tar.gz tigervnc-6f7f92e0434b5bfd9ede8898be2527bd4b2062c0.zip |
Remove unused assignment operator declaration from rfb::Configuration
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5063 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | common/rfb/Configuration.cxx | 17 | ||||
-rw-r--r-- | common/rfb/Configuration.h | 5 |
2 files changed, 0 insertions, 22 deletions
diff --git a/common/rfb/Configuration.cxx b/common/rfb/Configuration.cxx index 8ef09446..414b18f7 100644 --- a/common/rfb/Configuration.cxx +++ b/common/rfb/Configuration.cxx @@ -79,23 +79,6 @@ Configuration* Configuration::viewer() { // -=- Configuration implementation -Configuration& Configuration::operator=(const Configuration& src) { - VoidParameter* current = head; - while (current) { - VoidParameter* srcParam = ((Configuration&)src).get(current->getName()); - if (srcParam) { - current->immutable = false; - CharArray value(srcParam->getValueStr()); - vlog.debug("operator=(%s, %s)", current->getName(), value.buf); - current->setParam(value.buf); - } - current = current->_next; - } - if (_next) - *_next=src; - return *this; -} - bool Configuration::set(const char* n, const char* v, bool immutable) { return set(n, strlen(n), v, immutable); } diff --git a/common/rfb/Configuration.h b/common/rfb/Configuration.h index 842adc9c..e3337f44 100644 --- a/common/rfb/Configuration.h +++ b/common/rfb/Configuration.h @@ -62,11 +62,6 @@ namespace rfb { // - Return the buffer containing the Configuration's name const char* getName() const { return name.buf; } - // - Assignment operator. For every Parameter in this Configuration's - // group, get()s the corresponding source parameter and copies its - // content. - Configuration& operator=(const Configuration& src); - // - Set named parameter to value bool set(const char* param, const char* value, bool immutable=false); |