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/libstore/globals.cc | |
| 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/libstore/globals.cc')
| -rw-r--r-- | nix/libstore/globals.cc | 7 |
1 files changed, 0 insertions, 7 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() | |||
| 72 | void Settings::set(const string & name, const string & value) | 72 | void Settings::set(const string & name, const string & value) |
| 73 | { | 73 | { |
| 74 | settings[name] = value; | 74 | settings[name] = value; |
| 75 | overrides[name] = value; | ||
| 76 | } | 75 | } |
| 77 | 76 | ||
| 78 | 77 | ||
| @@ -196,10 +195,4 @@ string Settings::pack() | |||
| 196 | } | 195 | } |
| 197 | 196 | ||
| 198 | 197 | ||
| 199 | Settings::SettingsMap Settings::getOverrides() | ||
| 200 | { | ||
| 201 | return overrides; | ||
| 202 | } | ||
| 203 | |||
| 204 | |||
| 205 | } | 198 | } |
