aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/sid/decodersidfactory.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-07-26 08:58:59 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-07-26 08:58:59 +0000
commit45b203105b980162549fc97106c6353a23571106 (patch)
treee81c2e5db07e3643b59e6d653195e40fa34855c1 /src/plugins/Input/sid/decodersidfactory.cpp
parent62904593cc27e86a32aa07f43108a160ec52371d (diff)
downloadqmmp-45b203105b980162549fc97106c6353a23571106.tar.gz
qmmp-45b203105b980162549fc97106c6353a23571106.tar.bz2
qmmp-45b203105b980162549fc97106c6353a23571106.zip
removed function DecoderFactory::supports
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6603 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/sid/decodersidfactory.cpp')
-rw-r--r--src/plugins/Input/sid/decodersidfactory.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/plugins/Input/sid/decodersidfactory.cpp b/src/plugins/Input/sid/decodersidfactory.cpp
index 8982bfeca..5f101d3a2 100644
--- a/src/plugins/Input/sid/decodersidfactory.cpp
+++ b/src/plugins/Input/sid/decodersidfactory.cpp
@@ -46,24 +46,6 @@ DecoderSIDFactory::DecoderSIDFactory()
settings.endGroup();
}
-bool DecoderSIDFactory::supports(const QString &source) const
-{
- if(source.endsWith(".mus", Qt::CaseInsensitive))
- {
- QFile file(source);
- file.open(QIODevice::ReadOnly);
- return canDecode(&file);
- }
-
- foreach(QString filter, properties().filters)
- {
- QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard);
- if (regexp.exactMatch(source))
- return true;
- }
- return false;
-}
-
bool DecoderSIDFactory::canDecode(QIODevice *input) const
{
char buf[4];