about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorvolth <volth@volth.com>2018-07-20 17:56:59 +0000
committervolth <volth@volth.com>2018-07-20 18:48:37 +0000
commit87f5930c3fb2c852f5243278b7a9da8e117d95e4 (patch)
treed76aa79bc394e820305c4eebbd250c89f6992eb9 /lib
parenta7e5927b4739c6e6427fc993f077cd3eb5433db7 (diff)
downloadnixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar
nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.gz
nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.bz2
nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.lz
nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.xz
nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.zst
nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.zip
[bot]: remove unreferenced code
Diffstat (limited to 'lib')
-rw-r--r--lib/generators.nix2
-rw-r--r--lib/lists.nix1
-rw-r--r--lib/modules.nix1
-rw-r--r--lib/tests/misc.nix4
-rw-r--r--lib/types.nix1
5 files changed, 0 insertions, 9 deletions
diff --git a/lib/generators.nix b/lib/generators.nix
index aa6759087031..f5faf7007860 100644
--- a/lib/generators.nix
+++ b/lib/generators.nix
@@ -19,8 +19,6 @@ let
   libStr = lib.strings;
   libAttr = lib.attrsets;
 
-  flipMapAttrs = flip libAttr.mapAttrs;
-
   inherit (lib) isFunction;
 in
 
diff --git a/lib/lists.nix b/lib/lists.nix
index 231c2317c0c4..288882924fff 100644
--- a/lib/lists.nix
+++ b/lib/lists.nix
@@ -64,7 +64,6 @@ rec {
   */
   foldl = op: nul: list:
     let
-      len = length list;
       foldl' = n:
         if n == -1
         then nul
diff --git a/lib/modules.nix b/lib/modules.nix
index 20207b31d35b..a443d5ec5d16 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -670,7 +670,6 @@ rec {
     { config, options, ... }:
     let
       fromOpt = getAttrFromPath from options;
-      toOpt = getAttrFromPath to options;
       toOf = attrByPath to
         (abort "Renaming error: option `${showOption to}' does not exist.");
     in
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index eab20d0f14dc..3f2d742e7884 100644
--- a/lib/tests/misc.nix
+++ b/lib/tests/misc.nix
@@ -380,10 +380,6 @@ runTests {
 
           resRem7 = res6.replace (a: removeAttrs a ["a"]);
 
-          resReplace6 = let x = defaultOverridableDelayableArgs id { a = 7; mergeAttrBy = { a = builtins.add; }; };
-                            x2 = x.merge { a = 20; }; # now we have 27
-                        in (x2.replace) { a = 10; }; # and override the value by 10
-
           # fixed tests (delayed args): (when using them add some comments, please)
           resFixed1 =
                 let x = defaultOverridableDelayableArgs id ( x: { a = 7; c = x.fixed.b; });
diff --git a/lib/types.nix b/lib/types.nix
index cf6f2aa46e40..98eff2ac6ffb 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -309,7 +309,6 @@ rec {
               }
           else
             def;
-        listOnly = listOf elemType;
         attrOnly = attrsOf elemType;
       in mkOptionType rec {
         name = "loaOf";