diff options
-rw-r--r-- | src/luarocks/dir.lua | 4 |
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 "" |
27 | end | 27 | end |
28 | 28 | ||
29 | function strip_base_dir(pathname) | ||
30 | return pathname:gsub("^[^/]*/", "") | ||
31 | end | ||
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 |