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: