summaryrefslogtreecommitdiff
path: root/src/options/options_template.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/options/options_template.h')
-rw-r--r--src/options/options_template.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/options/options_template.h b/src/options/options_template.h
index 9d5e70099..f5ea87c54 100644
--- a/src/options/options_template.h
+++ b/src/options/options_template.h
@@ -133,20 +133,6 @@ public:
}
/**
- * Set the default value of the given option. Is equivalent to calling `set()`
- * if `wasSetByUser()` returns false. Uses `ref()`, which causes a compile-time
- * error if the given option is read-only.
- */
- template <class T>
- void setDefault(T t, const typename T::type& val)
- {
- if (!wasSetByUser(t))
- {
- ref(t) = val;
- }
- }
-
- /**
* Get a non-const reference to the value of the given option. Causes a
* compile-time error if the given option is read-only. Writeable options
* specialize this template with a real implementation.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback