[vlc-commits] VLSub: Remove unused helper

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 5 10:26:04 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr  3 16:51:17 2018 +0200| [43e481351ec16f66c45091d191c7abceefef3d12] | committer: Hugo Beauzée-Luyssen

VLSub: Remove unused helper

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43e481351ec16f66c45091d191c7abceefef3d12
---

 share/lua/extensions/VLSub.lua | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 5ca86e11fb..2a4a0e5949 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -2171,22 +2171,6 @@ end
 
             --[[ Misc utils]]--
 
-function make_uri(str)
-  str = str:gsub("\\", "/")
-  local windowdrive = string.match(str, "^(%a:).+$")
-  local encode_uri = vlc.strings.encode_uri_component
-  local encodedPath = ""
-  for w in string.gmatch(str, "/([^/]+)") do
-    encodedPath = encodedPath.."/"..encode_uri(w)
-  end
-
-  if windowdrive then
-    return "file:///"..windowdrive..encodedPath
-  else
-    return "file://"..encodedPath
-  end
-end
-
 function file_touch(name) -- test write ability
   if not name or trim(name) == ""
   then return false end



More information about the vlc-commits mailing list