[vlc-commits] VLSub: Remove unused helper

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 12 13:01:05 CEST 2018


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

VLSub: Remove unused helper

(cherry picked from commit 43e481351ec16f66c45091d191c7abceefef3d12)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=4e0e64e742b7f083a7f154ad9373ead576e7800b
---

 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 d9762795c2..3a18feae01 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -2164,22 +2164,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