From 45b203105b980162549fc97106c6353a23571106 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 26 Jul 2016 08:58:59 +0000 Subject: removed function DecoderFactory::supports git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6603 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/sid/decodersidfactory.cpp | 18 ------------------ src/plugins/Input/sid/decodersidfactory.h | 3 +-- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'src/plugins/Input/sid') 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]; diff --git a/src/plugins/Input/sid/decodersidfactory.h b/src/plugins/Input/sid/decodersidfactory.h index eec7b01db..717a92f14 100644 --- a/src/plugins/Input/sid/decodersidfactory.h +++ b/src/plugins/Input/sid/decodersidfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013-2015 by Ilya Kotov * + * Copyright (C) 2013-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -41,7 +41,6 @@ class DecoderSIDFactory : public QObject, DecoderFactory public: DecoderSIDFactory(); - bool supports(const QString &source) const; bool canDecode(QIODevice *input) const; const DecoderProperties properties() const; Decoder *create(const QString &path, QIODevice *input); -- cgit v1.2.3-13-gbd6f