From a34fb659595ecc24751f847d5115494e9a25b264 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 18 Dec 2023 18:05:16 +0800 Subject: [PATCH] lib: remove `modulesToList` No part of the config uses this function anymore so it's safe to remove it. --- lib/default.nix | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index ee3ec6ca..e50ba8c5 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -45,23 +45,6 @@ rec { lib.filterAttrs (name: value: value != { }) (lib.mapAttrs' collect files); - /* Collect all modules (results from `filesToAttr`) into a list. - - Signature: - attrs -> [ function ] - Where: - - `attrs` is the set of modules and their path. - Returns: - - A list of imported modules. - - Example: - modulesToList (filesToAttr ../modules) - => [ ] - */ - modulesToList = attrs: - let paths = lib.collect builtins.isPath attrs; - in builtins.map (path: import path) paths; - /* Count the attributes with the given predicate. Examples: