diff options
author | Matej Urbas <matej.urbas@gmail.com> | 2023-05-08 19:21:57 +0100 |
---|---|---|
committer | Matej Urbas <matej.urbas@gmail.com> | 2023-05-08 19:21:57 +0100 |
commit | 1ea1e378de22bf32b5ccc1edf66798ab91299ac7 (patch) | |
tree | 44afe2e70cb4e6908979f245cc10a86e9e52be5c /src/libstore/globals.cc | |
parent | 613bc699bb72d32c7d0622bf2996b2ecc8012455 (diff) |
removes MaxSubstitutionJobsSetting
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r-- | src/libstore/globals.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index 46b14cc98..4c66d08ee 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -249,17 +249,6 @@ unsigned int MaxBuildJobsSetting::parse(const std::string & str) const } } -unsigned int MaxSubstitutionJobsSetting::parse(const std::string & str) const -{ - if (str == "auto") return std::max(1U, std::thread::hardware_concurrency()); - else { - if (auto n = string2Int<decltype(value)>(str)) - return std::max(1U, *n); - else - throw UsageError("configuration setting '%s' should be 'auto' or an integer", name); - } -} - Paths PluginFilesSetting::parse(const std::string & str) const { |