From c5eb4081da7e130ef6d466e7086695f0d9e311aa Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Thu, 8 Oct 2020 20:46:57 +0200 Subject: [PATCH] unused functions --- src/ytjs/ytjschannelsource.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/ytjs/ytjschannelsource.cpp b/src/ytjs/ytjschannelsource.cpp index c8e2d577..6dda2e3b 100644 --- a/src/ytjs/ytjschannelsource.cpp +++ b/src/ytjs/ytjschannelsource.cpp @@ -8,18 +8,6 @@ namespace { -int parseDuration(const QString &s) { - static const QTime zeroTime(0, 0); - QTime time = QTime::fromString(s, QStringLiteral("hh:mm:ss")); - return zeroTime.secsTo(time); -} - -QString parseChannelId(const QString &channelUrl) { - int pos = channelUrl.lastIndexOf('/'); - if (pos >= 0) return channelUrl.mid(pos + 1); - return QString(); -} - QDateTime parsePublishedText(const QString &s) { int num = 0; const auto parts = s.splitRef(' ');