Add unused arg validation rule

This commit is contained in:
Brahim Hadriche committed 2023-12-22 11:42:51 -05:00
1 parent 192401c847
commit 8f1d3778d8
11 files changed
+32 -23

No files matched your search

@@ -56,7 +56,7 @@ function WrapWithIndexField(node as object) as object
end function
' TODO:P0 better model of the queue (Now playing, etc)
function GetQueue(unused as dynamic) as object
function GetQueue(_unused as dynamic) as object
queueNodes = m.content.getChildren(-1, 0)
items = []
for each node in queueNodes
@@ -92,13 +92,13 @@ function GetQueue(unused as dynamic) as object
}
end function
function Clear(unused as dynamic)
function Clear(_unused as dynamic)
m.content.removeChildrenIndex(m.content.getChildCount(), 0)
m.top.index = -1
m.top.playlistIndex = -1
end function
function PlayNextItem(unused as dynamic) as boolean
function PlayNextItem(_unused as dynamic) as boolean
childCount = m.content.getChildCount()
if childCount = 0
return false
@@ -235,6 +235,6 @@ function watchedVideosContain(videoId as string) as boolean
return m.watchedVideos.Contains(videoId)
end function
function watchedVideosClear(unused as dynamic)
function watchedVideosClear(_unused as dynamic)
m.watchedVideos = new RingBuffer(100)
end function