Browse Source

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
tags/v1.2.90
Adam Tkac 11 years ago
parent
commit
6f7f92e043
2 changed files with 0 additions and 22 deletions
  1. 0
    17
      common/rfb/Configuration.cxx
  2. 0
    5
      common/rfb/Configuration.h

+ 0
- 17
common/rfb/Configuration.cxx View File

@@ -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);
}

+ 0
- 5
common/rfb/Configuration.h View File

@@ -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);


Loading…
Cancel
Save