From 1bdf6a2c0201f793dd9f2d9c020d3752be499b35 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 24 Aug 2024 20:05:32 +0200 Subject: [PATCH] Remove unused function --- twitchdl/twitch.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/twitchdl/twitch.py b/twitchdl/twitch.py index 9a9b0d8..d130ac4 100644 --- a/twitchdl/twitch.py +++ b/twitchdl/twitch.py @@ -325,23 +325,6 @@ def channel_clips_generator( return _generator(clips, limit) -def channel_clips_generator_old(channel_id: str, period: ClipsPeriod, limit: int): - cursor = "" - while True: - clips = get_channel_clips(channel_id, period, limit, after=cursor) - - if not clips["edges"]: - break - - has_next = clips["pageInfo"]["hasNextPage"] - cursor = clips["edges"][-1]["cursor"] if has_next else None - - yield clips, has_next - - if not cursor: - break - - def get_channel_videos( channel_id: str, limit: int,