diff options
author | regnat <rg@regnat.ovh> | 2020-09-09 11:35:33 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2020-09-16 13:53:08 +0200 |
commit | 3c525d15903ea98e5401ff57061295b8c625cc45 (patch) | |
tree | 08b4a56d9b02b1d18b296e1b86a4108130e5d3da /src/libstore/globals.cc | |
parent | 3b57181f8ed94cfa149ad4319ba96d41c5fbc30e (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/globals.cc')
-rw-r--r-- | src/libstore/globals.cc | 5 |
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({ |