summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorCongcong Kuo <congcong.kuo@gmail.com>2026-01-29 22:39:30 +0800
committerLudovic Courtès <ludo@gnu.org>2026-02-06 20:49:01 +0100
commitdab3b8f64cd1b5255aa29150ace86610a13e1097 (patch)
tree79753f8cbdc02f2784620cae96e5ad11e188e2d1 /nix
parentcda4d04f85322da812f95c119068ed6d963a7836 (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.cc7
-rw-r--r--nix/libstore/globals.hh7
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()
72void Settings::set(const string & name, const string & value) 72void 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
199Settings::SettingsMap Settings::getOverrides()
200{
201 return overrides;
202}
203
204
205} 198}
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 {
40 40
41 string pack(); 41 string pack();
42 42
43 SettingsMap getOverrides();
44
45 /* The directory where we store sources and derived files. */ 43 /* The directory where we store sources and derived files. */
46 Path nixStore; 44 Path nixStore;
47 45
@@ -216,7 +214,7 @@ struct Settings {
216 Path slirp4netns; 214 Path slirp4netns;
217 215
218private: 216private:
219 SettingsMap settings, overrides; 217 SettingsMap settings;
220 218
221 void _get(string & res, const string & name); 219 void _get(string & res, const string & name);
222 void _get(bool & res, const string & name); 220 void _get(bool & res, const string & name);
@@ -230,7 +228,4 @@ private:
230inline Settings settings; 228inline Settings settings;
231 229
232 230
233inline const string nixVersion {PACKAGE_VERSION};
234
235
236} 231}