From f011442df99e775e0fe8f28b4c84b59fcd787597 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 2 Nov 2012 08:06:49 -0200 Subject: remove dead code --- src/luarocks/dir.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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) return (pathname:gsub("/*$", ""):match("(.*/)[^/]*")) or "" end -function strip_base_dir(pathname) - return pathname:gsub("^[^/]*/", "") -end - --- Describe a path in a cross-platform way. -- Use this function to avoid platform-specific directory -- separators in other modules. Removes trailing slashes from -- cgit v1.2.3-55-g6feb