1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

options.lua: remove unused function

val2str isn't used anywhere. Its only use was removed in dd3e52fe68,
when it was still part of osc.lua.
This commit is contained in:
Guido Cella 2022-04-08 17:37:23 +02:00 committed by Jan Ekström
parent d6affda0a7
commit 4d12dfb75a

View File

@ -1,12 +1,5 @@
local msg = require 'mp.msg'
local function val2str(val)
if type(val) == "boolean" then
if val then val = "yes" else val = "no" end
end
return val
end
-- converts val to type of desttypeval
local function typeconv(desttypeval, val)
if type(desttypeval) == "boolean" then