mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +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:
parent
d6affda0a7
commit
4d12dfb75a
@ -1,12 +1,5 @@
|
|||||||
local msg = require 'mp.msg'
|
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
|
-- converts val to type of desttypeval
|
||||||
local function typeconv(desttypeval, val)
|
local function typeconv(desttypeval, val)
|
||||||
if type(desttypeval) == "boolean" then
|
if type(desttypeval) == "boolean" then
|
||||||
|
Loading…
Reference in New Issue
Block a user