diff options
| author | Congcong Kuo <congcong.kuo@gmail.com> | 2026-01-29 22:39:30 +0800 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-02-06 20:49:01 +0100 |
| commit | dab3b8f64cd1b5255aa29150ace86610a13e1097 (patch) | |
| tree | 79753f8cbdc02f2784620cae96e5ad11e188e2d1 /nix | |
| parent | cda4d04f85322da812f95c119068ed6d963a7836 (diff) | |
daemon: Remove unused entities in globals.{hh, cc}.
All these entities are not been used anywhere.
* nix/libstore/globals.hh (Settings): Remove 'overrides' member
and 'getOverrides' method declaration.
(nixVersion): Removed.
* nix/libstore/globals.cc (Settings::set): Do not update the 'overrides' map.
(Settings::getOverrides): Remove function definition.
Change-Id: If7dbb6df79178d2569cda21e1fe5e0ea3d8e59ba
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #6009
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/libstore/globals.cc | 7 | ||||
| -rw-r--r-- | nix/libstore/globals.hh | 7 |
2 files changed, 1 insertions, 13 deletions
diff --git a/nix/libstore/globals.cc b/nix/libstore/globals.cc index 885ba4eafc1..eb7e7dac413 100644 --- a/nix/libstore/globals.cc +++ b/nix/libstore/globals.cc @@ -72,7 +72,6 @@ void Settings::processEnvironment() void Settings::set(const string & name, const string & value) { settings[name] = value; - overrides[name] = value; } @@ -196,10 +195,4 @@ string Settings::pack() } -Settings::SettingsMap Settings::getOverrides() -{ - return overrides; -} - - } diff --git a/nix/libstore/globals.hh b/nix/libstore/globals.hh index d68993f280f..8ce8aa665a8 100644 --- a/nix/libstore/globals.hh +++ b/nix/libstore/globals.hh @@ -40,8 +40,6 @@ struct Settings { string pack(); - SettingsMap getOverrides(); - /* The directory where we store sources and derived files. */ Path nixStore; @@ -216,7 +214,7 @@ struct Settings { Path slirp4netns; private: - SettingsMap settings, overrides; + SettingsMap settings; void _get(string & res, const string & name); void _get(bool & res, const string & name); @@ -230,7 +228,4 @@ private: inline Settings settings; -inline const string nixVersion {PACKAGE_VERSION}; - - } |
