diff options
Diffstat (limited to 'script/core/collector.lua')
-rw-r--r-- | script/core/collector.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/script/core/collector.lua b/script/core/collector.lua index 43e584d5..57ae3adc 100644 --- a/script/core/collector.lua +++ b/script/core/collector.lua @@ -160,29 +160,4 @@ function m.each(uri, name) return eachOfFallback(nameCollect, scope.fallback) end ---- 迭代某个名字的引用订阅 ----@param uri uri ----@param name string -function m.eachRef(uri, name) - local nameCollect = collect[name] - if not nameCollect then - return DUMMY_FUNCTION - end - ---@type scope - if scope.getFolder(uri) then - return m.each(uri, name) - end - - local curi, value - local function getNext() - curi, value = next(nameCollect, curi) - if not curi then - return nil, nil - end - - return value, curi - end - return getNext -end - return m |