aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-11-02 08:06:49 -0200
committerHisham Muhammad <hisham@gobolinux.org>2012-11-02 08:06:49 -0200
commitf011442df99e775e0fe8f28b4c84b59fcd787597 (patch)
tree30263abf6e3aba5de8d21c44549e6407dad55d64
parent0575ba154b102c4a8a4f3b75c5d9747c488ab719 (diff)
downloadluarocks-f011442df99e775e0fe8f28b4c84b59fcd787597.tar.gz
luarocks-f011442df99e775e0fe8f28b4c84b59fcd787597.tar.bz2
luarocks-f011442df99e775e0fe8f28b4c84b59fcd787597.zip
remove dead code
-rw-r--r--src/luarocks/dir.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/luarocks/dir.lua b/src/luarocks/dir.lua
index c2309ff1..b496c962 100644
--- a/src/luarocks/dir.lua
+++ b/src/luarocks/dir.lua
@@ -26,10 +26,6 @@ function dir_name(pathname)
26 return (pathname:gsub("/*$", ""):match("(.*/)[^/]*")) or "" 26 return (pathname:gsub("/*$", ""):match("(.*/)[^/]*")) or ""
27end 27end
28 28
29function strip_base_dir(pathname)
30 return pathname:gsub("^[^/]*/", "")
31end
32
33--- Describe a path in a cross-platform way. 29--- Describe a path in a cross-platform way.
34-- Use this function to avoid platform-specific directory 30-- Use this function to avoid platform-specific directory
35-- separators in other modules. Removes trailing slashes from 31-- separators in other modules. Removes trailing slashes from