mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
chore: get rid of dead code and unused variables where appropriate
Looks like some cruft has been left over from previous refactorings. This removes dead variables, which should not have side effects in their constructors. In cases where the variable initialization has a purpose [[maybe_unused]] is inserted to silence compiler warnings.
This commit is contained in:
parent
feb46688a2
commit
756758d968
12 changed files with 4 additions and 20 deletions
|
@ -257,8 +257,6 @@ std::pair<FlakeRef, std::string> parseFlakeRefWithFragment(
|
|||
{
|
||||
using namespace fetchers;
|
||||
|
||||
std::smatch match;
|
||||
|
||||
if (auto res = parseFlakeIdRef(fetchSettings, url, isFlake)) {
|
||||
return *res;
|
||||
} else if (auto res = parseURLFlakeRef(fetchSettings, url, baseDir, isFlake)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue