Skip to content

Commit 4c3918a

Browse files
committed
Removed unused code
1 parent 2f2e2df commit 4c3918a

3 files changed

Lines changed: 0 additions & 109 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
import org.schabi.newpipe.extractor.stream.AudioTrackType;
6161
import org.schabi.newpipe.extractor.utils.JsonUtils;
6262
import org.schabi.newpipe.extractor.utils.Parser;
63-
import org.schabi.newpipe.extractor.utils.ProtoBuilder;
6463
import org.schabi.newpipe.extractor.utils.RandomStringFromAlphabetGenerator;
6564
import org.schabi.newpipe.extractor.utils.Utils;
6665

@@ -235,23 +234,6 @@ public static boolean isY2ubeURL(@Nonnull final URL url) {
235234
return url.getHost().equalsIgnoreCase("y2u.be");
236235
}
237236

238-
public static String randomVisitorData(final ContentCountry country) {
239-
final ProtoBuilder pbE2 = new ProtoBuilder();
240-
pbE2.string(2, "");
241-
pbE2.varint(4, numberGenerator.nextInt(255) + 1);
242-
243-
final ProtoBuilder pbE = new ProtoBuilder();
244-
pbE.string(1, country.getCountryCode());
245-
pbE.bytes(2, pbE2.toBytes());
246-
247-
final ProtoBuilder pb = new ProtoBuilder();
248-
pb.string(1, RandomStringFromAlphabetGenerator.generate(
249-
CONTENT_PLAYBACK_NONCE_ALPHABET, 11, numberGenerator));
250-
pb.varint(5, System.currentTimeMillis() / 1000 - numberGenerator.nextInt(600000));
251-
pb.bytes(6, pbE.toBytes());
252-
return pb.toUrlencodedBase64();
253-
}
254-
255237
/**
256238
* Parses the duration string of the video expecting ":" or "." as separators
257239
*

extractor/src/main/java/org/schabi/newpipe/extractor/utils/ProtoBuilder.java

Lines changed: 0 additions & 73 deletions
This file was deleted.

extractor/src/test/java/org/schabi/newpipe/extractor/utils/ProtoBuilderTest.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)