Skip to content

Commit 8a2c47b

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
Remove dead code from info_list/InfoItemBuilder
It no longer really builds any view and used only for stroing click gesture callbacks. In the same way lik local/LocalItemBuilder does Last usage of build functions: 2e9a860
1 parent addf1e2 commit 8a2c47b

2 files changed

Lines changed: 20 additions & 131 deletions

File tree

app/src/main/java/org/schabi/newpipe/info_list/InfoItemBuilder.java

Lines changed: 0 additions & 131 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2016-2026 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
6+
package org.schabi.newpipe.info_list
7+
8+
import android.content.Context
9+
import org.schabi.newpipe.extractor.channel.ChannelInfoItem
10+
import org.schabi.newpipe.extractor.comments.CommentsInfoItem
11+
import org.schabi.newpipe.extractor.playlist.PlaylistInfoItem
12+
import org.schabi.newpipe.extractor.stream.StreamInfoItem
13+
import org.schabi.newpipe.util.OnClickGesture
14+
15+
class InfoItemBuilder(val context: Context) {
16+
var onStreamSelectedListener: OnClickGesture<StreamInfoItem>? = null
17+
var onChannelSelectedListener: OnClickGesture<ChannelInfoItem>? = null
18+
var onPlaylistSelectedListener: OnClickGesture<PlaylistInfoItem>? = null
19+
var onCommentsSelectedListener: OnClickGesture<CommentsInfoItem>? = null
20+
}

0 commit comments

Comments
 (0)