Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
thelegy committed Dec 22, 2023
1 parent 53f7265 commit 9dc5ac9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modules/zoned.nix
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,6 @@ in {
}";
in "traverse-from-${zoneSpec from matchFromSubzones}-to-${zoneSpec to matchToSubzones}-${ruleType}";

concatNonEmptyStringsSep = sep: strings:
pipe strings [
(filter (x: x != null))
(filter (x: stringLength x > 0))
(concatStringsSep sep)
];

zones = filterAttrs (_: zone: zone.enable) cfg.zones;
sortedZones = types.dependencyDagOfSubmodule.toOrderedList cfg.zones;

Expand Down Expand Up @@ -328,7 +321,7 @@ in {
then filter (x: x.name != "all" && ! x.localZone && isNull x.parent) sortedZones
else filter (x: x.parent == parent.name) sortedZones;
in
mkIf cfg.enable rec {
mkIf cfg.enable {
assertions = flatten [
(map (rule: rule.assertions) rules)
(map (zone: zone.assertions) sortedZones)
Expand Down

0 comments on commit 9dc5ac9

Please sign in to comment.