From 1397ba542ff2291be754aa9f45f565e311337a58 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 17 Jul 2014 18:38:29 +0200 Subject: Remove buggy get_passed_effect_time --- init.lua | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index d78b644..471dda0 100644 --- a/init.lua +++ b/init.lua @@ -209,16 +209,6 @@ function playereffects.get_remaining_effect_time(effect_id) end end -function playereffects.get_passed_effect_time(effect_id) - local now = os.time() - local effect = playereffects.effects[effect_id] - if(effect ~= nil) then - return os.difftime(now, effect.start_time) - else - return nil - end -end - function playereffects.cancel_effect(effect_id) local effect = playereffects.effects[effect_id] if(effect ~= nil) then -- cgit v1.2.3