Merge pull request #2881 from psychon/dead_code

Remove some dead code
This commit is contained in:
mergify[bot] 2019-09-23 16:40:19 +00:00 committed by GitHub
commit aa7c7c80ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -467,7 +467,7 @@ function notification:reset_timeout(new_timeout)
-- Do not set `self.timeout` to `self.timeout` since that would create the
-- timer before the constructor ends.
if new_timeout and self.timer then
self.timeout = new_timeout or self.timeout
self.timeout = new_timeout
end
if self.timer and not self.timer.started then

View File

@ -200,14 +200,6 @@ function client.gen_fake(args)
return ret.data._struts
end
function ret:struts(new)
for k, v in pairs(new or {}) do
ret.data._struts[k] = v
end
return ret.data._struts
end
-- Set a dummy one for now since set_screen will corrupt it.
ret._old_geo = {}