Remove cruft. ChanCount::INFINITE is not used

This commit is contained in:
Robin Gareus
2017-04-19 11:43:08 +02:00
parent 89815f7d59
commit 8f1cc261a2
3 changed files with 0 additions and 22 deletions

View File

@@ -26,10 +26,6 @@
#include "pbd/xml++.h"
#include "ardour/data_type.h"
#ifdef INFINITE
#undef INFINITE
#endif
namespace ARDOUR {
@@ -205,7 +201,6 @@ public:
XMLNode* state(const std::string& name) const;
static const ChanCount INFINITE;
static const ChanCount ZERO;
private:

View File

@@ -48,18 +48,6 @@ ChanCount::ChanCount(const XMLNode& node)
}
}
ChanCount
infinity_factory()
{
ChanCount ret;
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
ret.set(*t, UINT32_MAX);
}
return ret;
}
XMLNode*
ChanCount::state(const std::string& name) const
{
@@ -77,7 +65,6 @@ ChanCount::state(const std::string& name) const
}
// Statics
const ChanCount ChanCount::INFINITE = infinity_factory();
const ChanCount ChanCount::ZERO = ChanCount();
} // namespace ARDOUR

View File

@@ -34,10 +34,6 @@ namespace ARDOUR {
ChanMapping::ChanMapping(ChanCount identity)
{
if (identity == ChanCount::INFINITE) {
return;
}
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
for (size_t i = 0; i < identity.get(*t); ++i) {
set(*t, i, i);