@@ -14,10 +14,10 @@ std::shared_ptr<Registry> Registry::read(const Settings & settings, const Source
1414{
1515 debug (" reading registry '%s'" , path);
1616
17- auto registry = std::make_shared<Registry>(settings, type);
17+ auto registry = std::make_shared<Registry>(type);
1818
1919 if (!path.pathExists ())
20- return std::make_shared<Registry>(settings, type);
20+ return std::make_shared<Registry>(type);
2121
2222 try {
2323
@@ -125,23 +125,23 @@ std::shared_ptr<Registry> getCustomRegistry(const Settings & settings, const Pat
125125 return customRegistry;
126126}
127127
128- std::shared_ptr<Registry> getFlagRegistry (const Settings & settings )
128+ std::shared_ptr<Registry> getFlagRegistry ()
129129{
130- static auto flagRegistry = std::make_shared<Registry>(settings, Registry::Flag);
130+ static auto flagRegistry = std::make_shared<Registry>(Registry::Flag);
131131 return flagRegistry;
132132}
133133
134- void overrideRegistry (const Settings & settings, const Input & from, const Input & to, const Attrs & extraAttrs)
134+ void overrideRegistry (const Input & from, const Input & to, const Attrs & extraAttrs)
135135{
136- getFlagRegistry (settings )->add (from, to, extraAttrs);
136+ getFlagRegistry ()->add (from, to, extraAttrs);
137137}
138138
139139static std::shared_ptr<Registry> getGlobalRegistry (const Settings & settings, Store & store)
140140{
141141 static auto reg = [&]() {
142142 auto path = settings.flakeRegistry .get ();
143143 if (path == " " ) {
144- return std::make_shared<Registry>(settings, Registry::Global); // empty registry
144+ return std::make_shared<Registry>(Registry::Global); // empty registry
145145 }
146146
147147 return Registry::read (
@@ -165,7 +165,7 @@ static std::shared_ptr<Registry> getGlobalRegistry(const Settings & settings, St
165165Registries getRegistries (const Settings & settings, Store & store)
166166{
167167 Registries registries;
168- registries.push_back (getFlagRegistry (settings ));
168+ registries.push_back (getFlagRegistry ());
169169 registries.push_back (getUserRegistry (settings));
170170 registries.push_back (getSystemRegistry (settings));
171171 registries.push_back (getGlobalRegistry (settings, store));
0 commit comments