aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-04-27 12:48:47 +0200
committerPierre Ossman <ossman@cendio.se>2015-04-27 12:48:47 +0200
commit135906e4b2c3f14f52eff8b89e8e203c11a63966 (patch)
tree7bf81b1257158eaa751df3a19347ead0d834044b /common/rfb
parent056c153209fea793ce00986cf102a5b587e28369 (diff)
downloadtigervnc-135906e4b2c3f14f52eff8b89e8e203c11a63966.tar.gz
tigervnc-135906e4b2c3f14f52eff8b89e8e203c11a63966.zip
Remove parameter "hasBeenSet" logic
It doesn't really make sense anymore given that settings might come from the GUI or configuration and not only the command line.
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/Configuration.cxx14
-rw-r--r--common/rfb/Configuration.h3
2 files changed, 1 insertions, 16 deletions
diff --git a/common/rfb/Configuration.cxx b/common/rfb/Configuration.cxx
index d7005221..8e1ea6e9 100644
--- a/common/rfb/Configuration.cxx
+++ b/common/rfb/Configuration.cxx
@@ -88,7 +88,6 @@ bool Configuration::set(const char* name, int len,
strncasecmp(current->getName(), name, len) == 0)
{
bool b = current->setParam(val);
- current->setHasBeenSet();
if (b && immutable)
current->setImmutable();
return b;
@@ -113,7 +112,6 @@ bool Configuration::set(const char* config, bool immutable) {
while (current) {
if (strcasecmp(current->getName(), config) == 0) {
bool b = current->setParam();
- current->setHasBeenSet();
if (b && immutable)
current->setImmutable();
return b;
@@ -182,7 +180,7 @@ void Configuration::list(int width, int nameWidth) {
VoidParameter::VoidParameter(const char* name_, const char* desc_,
ConfigurationObject co)
- : immutable(false), _hasBeenSet(false), name(name_), description(desc_)
+ : immutable(false), name(name_), description(desc_)
{
Configuration *conf = NULL;
@@ -226,16 +224,6 @@ VoidParameter::setImmutable() {
immutable = true;
}
-void
-VoidParameter::setHasBeenSet() {
- _hasBeenSet = true;
-}
-
-bool
-VoidParameter::hasBeenSet() {
- return _hasBeenSet;
-}
-
// -=- AliasParameter
AliasParameter::AliasParameter(const char* name_, const char* desc_,
diff --git a/common/rfb/Configuration.h b/common/rfb/Configuration.h
index 4feeb789..da93fddf 100644
--- a/common/rfb/Configuration.h
+++ b/common/rfb/Configuration.h
@@ -165,8 +165,6 @@ namespace rfb {
virtual bool isBool() const;
virtual void setImmutable();
- virtual void setHasBeenSet();
- bool hasBeenSet();
protected:
friend class Configuration;
@@ -174,7 +172,6 @@ namespace rfb {
VoidParameter* _next;
bool immutable;
- bool _hasBeenSet;
const char* name;
const char* description;
};