Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit cc908e2

Browse files
author
livecodeali
committed
[[ Widget Utils ]] Remove superfluous code from stringToColor handler
1 parent d557ac7 commit cc908e2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

extensions/modules/widget-utils/widget-utils.lcb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ Use the <stringToColor> handler when receiving colors from LiveCode script
240240
via a property setter, or from the widget's stored properties array when loading.
241241
*/
242242
public handler stringToColor(in pString as String) returns Color
243-
variable tRed as Real
244-
variable tGreen as Real
245-
variable tBlue as Real
246-
variable tAlpha as Real
247-
248243
variable tComponentList as List
249244
split pString by "," into tComponentList
250245

@@ -262,10 +257,6 @@ public handler stringToColor(in pString as String) returns Color
262257
push stringToColorComponent(tColorComponent) onto tColor
263258
end repeat
264259

265-
if tComponentCount is 3 then
266-
push 1 onto tColor
267-
end if
268-
269260
return color tColor
270261
end handler
271262

0 commit comments

Comments
 (0)