From 0084ccba2e21372058e38be6b82536a7d2b35bac Mon Sep 17 00:00:00 2001 From: Kyle McLamb Date: Tue, 4 Oct 2016 16:50:28 -0700 Subject: [PATCH] Remove nextUp() and nextLeft() We need the expected size of the new cell to do it correctly, and that would introduce an inconsistency between up/left and the existing row/col functions. --- layout.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/layout.lua b/layout.lua index f84fdd6..fd6b08c 100644 --- a/layout.lua +++ b/layout.lua @@ -37,20 +37,12 @@ end Layout.nextDown = Layout.nextRow -function Layout:nextUp() - return self._x, self._y - self._h - self._pady -end - function Layout:nextCol() return self._x + self._w + self._padx, self._y end Layout.nextRight = Layout.nextCol -function Layout:nextLeft() - return self._x - self._w - self._padx, self._y -end - function Layout:push(x,y) self._stack[#self._stack+1] = { self._x, self._y,