mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-09 15:58:22 +00:00
Remove unused variable
This commit is contained in:
@@ -51,12 +51,11 @@ local function findIndexFromPoint (self, x, y)
|
|||||||
local x1 = self:getRectangle(true, true)
|
local x1 = self:getRectangle(true, true)
|
||||||
|
|
||||||
local font = self.fontData
|
local font = self.fontData
|
||||||
local width, lastWidth = 0
|
local width = 0
|
||||||
local lastPosition = 0
|
local lastPosition = 0
|
||||||
|
|
||||||
local function checkPosition (position)
|
local function checkPosition (position)
|
||||||
local text = self.value:sub(1, position - 1)
|
local text = self.value:sub(1, position - 1)
|
||||||
lastWidth = width
|
|
||||||
width = font:getAdvance(text)
|
width = font:getAdvance(text)
|
||||||
if width > x + self.scrollX - x1 then
|
if width > x + self.scrollX - x1 then
|
||||||
if position == 1 then
|
if position == 1 then
|
||||||
|
|||||||
Reference in New Issue
Block a user