Remove cruft. ChanCount::INFINITE is not used
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user