Removed not needed code in yield.lua

This commit is contained in:
supertobi
2017-10-10 17:22:24 +02:00
committed by GitHub
parent 19b7d29483
commit 4090266989

View File

@@ -25,21 +25,6 @@ USAGE
local dt = require "darktable"
local yield_orig = coroutine.yield
-- ToDo: Test with dt master
--[[
if (dt.configuration.api_version_major >= 4) then
coroutine.yield = function(yield_type, command)
if (yield_type == "RUN_COMMAND") then
dt.control.execute(command)
elseif (yield_type == "FILE_READABLE") then
dt.control.read(command)
elseif (yield_type == "WAIT_MS") then
dt.control.sleep(command)
end
end
end
]]
if (dt.configuration.api_version_major < 4) then
dt.control = {}
dt.control.execute = function(command)