aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-09-09 11:35:33 +0200
committerregnat <rg@regnat.ovh>2020-09-16 13:53:08 +0200
commit3c525d15903ea98e5401ff57061295b8c625cc45 (patch)
tree08b4a56d9b02b1d18b296e1b86a4108130e5d3da /src/libstore
parent3b57181f8ed94cfa149ad4319ba96d41c5fbc30e (diff)
Complete the `toJSON` instance for `Setting<T>`
Don't let it just contain the value, but also the other fields of the setting (description, aliases, etc..)
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/globals.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index 4a5971c3f..491c664db 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -162,11 +162,6 @@ template<> std::string BaseSetting<SandboxMode>::to_string() const
else abort();
}
-template<> nlohmann::json BaseSetting<SandboxMode>::toJSON()
-{
- return AbstractSetting::toJSON();
-}
-
template<> void BaseSetting<SandboxMode>::convertToArg(Args & args, const std::string & category)
{
args.addFlag({