Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/qrCode/qrCode.help.brs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ function _qrCode_help_getAlignmentPatternPositions() as object
else
numAlign = floor(m.version / 7) + 2
stepSize = iif(m.version = 32, 26, ceil((m.version * 4 + 4) / (numAlign * 2 - 2)) * 2)
result = [6]
result = []
position = m.size - 7
while(result.count() < numAlign)
splice(result, 1, 0, [position])
result.unshift(position)
position -= stepSize
end while
return result
Expand Down
18 changes: 0 additions & 18 deletions components/qrCode/qrCode.utils.brs
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,6 @@ function concat(array1 as object, array2 as object) as object
return new
end function

function splice(array as object, start as integer, delete = 999999 as integer, insert = [] as object)
if start > array.count() - 1 then start = array.count() - 1
if start < 0 then start = array.count() - start
if start < 0 then start = 0
if delete < 0 then delete = 0
for d = 1 to delete
array.delete(start)
next
tmp = []
tmp.append(insert)
while(array.count() - 1 > start)
tmp.push(array[start])
array.delete(start)
end while
array.append(tmp)
return array
end function

function infinity()
return 999999
end function
Expand Down