Ref T545 Removed redundant constructors that are now inherited.

This commit is contained in:
Mat Sutcliffe
2019-03-02 18:12:47 +00:00
parent c05a32dbd4
commit 1cb21f0a4b
33 changed files with 6 additions and 118 deletions

View File

@@ -17,10 +17,6 @@ namespace BlackMisc
CRawFsdMessageList::CRawFsdMessageList(const CSequence &other) : CSequence<CRawFsdMessage>(other)
{ }
CRawFsdMessageList::CRawFsdMessageList(std::initializer_list<CRawFsdMessage> il) :
CSequence<CRawFsdMessage>(il)
{ }
CRawFsdMessageList CRawFsdMessageList::findByPacketType(const QString &type) const
{
return this->findBy([ & ](const CRawFsdMessage &rawFsdMessage)

View File

@@ -41,9 +41,6 @@ namespace BlackMisc
//! Construct from a base class object.
CRawFsdMessageList(const CSequence &other);
//! Construct from initializer list.
CRawFsdMessageList(std::initializer_list<CRawFsdMessage> il);
//! Find by a given list of raw messages which are type
CRawFsdMessageList findByPacketType(const QString &type) const;

View File

@@ -24,11 +24,6 @@ namespace BlackMisc
CSequence<CRemoteFile>(other)
{ }
CRemoteFileList::CRemoteFileList(const CRemoteFile &remoteFile)
{
this->push_back(remoteFile);
}
QStringList CRemoteFileList::getNames(bool sorted) const
{
QStringList fileNames;

View File

@@ -41,9 +41,6 @@ namespace BlackMisc
//! Construct from a base class object.
CRemoteFileList(const CSequence<CRemoteFile> &other);
//! From single file
CRemoteFileList(const CRemoteFile &remoteFile);
//! All file names
QStringList getNames(bool sorted = true) const;

View File

@@ -129,12 +129,8 @@ namespace BlackMisc
CUrlList(listOfUrls), m_maxTrials(maxTrials)
{ }
CFailoverUrlList::CFailoverUrlList(const CSequence<CUrl> &other, int maxTrials) :
CUrlList(other), m_maxTrials(maxTrials)
{ }
CFailoverUrlList::CFailoverUrlList(const CUrlList &urlIst) :
CUrlList(urlIst)
CFailoverUrlList::CFailoverUrlList(const CUrlList &urlIst, int maxTrials) :
CUrlList(urlIst), m_maxTrials(maxTrials)
{ }
CUrlList CFailoverUrlList::getWithoutFailed() const

View File

@@ -78,11 +78,8 @@ namespace BlackMisc
//! By list of URLs
explicit CFailoverUrlList(const QStringList &listOfUrls, int maxTrials = 2);
//! Construct from a base class object.
CFailoverUrlList(const CSequence<CUrl> &other, int maxTrials = 2);
//! From url list
CFailoverUrlList(const CUrlList &urlIst);
CFailoverUrlList(const CUrlList &urlIst, int maxTrials = 2);
//! All failed URLs
const CUrlList &getFailedUrls() const { return m_failedUrls; }