diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-21 18:49:43 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-21 18:49:43 +0200 |
commit | 0716adaa8b23855bd5e1a59f4115ec933b6a9205 (patch) | |
tree | a53cde7c076771a5d7e599f08ff7044b3b7e8bf8 /src/libutil/abstractsettingtojson.hh | |
parent | 340ca382c4de5863f0ecb5c67bae5461ea20c60b (diff) |
abstractsettingtojson.hh -> abstract-setting-to-json.hh
Diffstat (limited to 'src/libutil/abstractsettingtojson.hh')
-rw-r--r-- | src/libutil/abstractsettingtojson.hh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libutil/abstractsettingtojson.hh b/src/libutil/abstractsettingtojson.hh deleted file mode 100644 index b3fbc84f7..000000000 --- a/src/libutil/abstractsettingtojson.hh +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#include <nlohmann/json.hpp> -#include "config.hh" - -namespace nix { -template<typename T> -std::map<std::string, nlohmann::json> BaseSetting<T>::toJSONObject() -{ - auto obj = AbstractSetting::toJSONObject(); - obj.emplace("value", value); - obj.emplace("defaultValue", defaultValue); - return obj; -} -} |