* Remove an unnecessary function.

svn path=/nixpkgs/trunk/; revision=33271
This commit is contained in:
Eelco Dolstra 2012-03-19 18:13:47 +00:00
parent 6b4cd6673a
commit 2938819d7e
2 changed files with 1 additions and 5 deletions

View file

@ -112,7 +112,7 @@ _EOF_
# the default binary.
useSetUID = drv: path:
let
name = stdenv.lib.basename path;
name = baseNameOf path;
bin = "${drv}${path}";
in assert name != "";
writeScript "setUID-${name}" ''

View file

@ -153,10 +153,6 @@ rec {
s;
# Why do we need this if we have baseNameOf?
basename = s: lib.last (splitString "/" s);
# Return true iff string v1 denotes a version older than v2.
versionOlder = v1: v2: builtins.compareVersions v2 v1 == 1;