Remove unused in_channels() in AudioProcessor.
authorCarl Hetherington <cth@carlh.net>
Fri, 11 Sep 2015 21:35:02 +0000 (22:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Sep 2015 21:35:02 +0000 (22:35 +0100)
src/lib/audio_processor.h
src/lib/channel_count.h [deleted file]
src/lib/mid_side_decoder.cc
src/lib/mid_side_decoder.h
src/lib/upmixer_a.cc
src/lib/upmixer_a.h

index 2c66d5b071c0de49ab27133a304cbce7e6fb95f9..9e34689cb99ef22516d34138e14c7e51ad4707c4 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef DCPOMATIC_AUDIO_PROCESSOR_H
 #define DCPOMATIC_AUDIO_PROCESSOR_H
 
-#include "channel_count.h"
 #include <boost/shared_ptr.hpp>
 #include <list>
 #include <string>
@@ -48,8 +47,6 @@ public:
        virtual std::string name () const = 0;
        /** @return An internal identifier */
        virtual std::string id () const = 0;
-       /** @return Number of input channels */
-       virtual ChannelCount in_channels () const = 0;
        /** @return Number of output channels */
        virtual int out_channels () const = 0;
        /** @return A clone of this AudioProcessor for operation at the specified sampling rate */
diff --git a/src/lib/channel_count.h b/src/lib/channel_count.h
deleted file mode 100644 (file)
index bc84029..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
-    Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#ifndef DCPOMATIC_CHANNEL_COUNT_H
-#define DCPOMATIC_CHANNEL_COUNT_H
-
-class ChannelCount
-{
-public:
-       ChannelCount ()
-               : min (0)
-               , max (0)
-       {}
-
-       ChannelCount (int n)
-               : min (n)
-               , max (n)
-       {}
-
-       ChannelCount (int min_, int max_)
-               : min (min_)
-               , max (max_)
-       {}
-
-       bool includes (int c) {
-               return min <= c && c <= max;
-       }
-
-       int min;
-       int max;
-};
-
-#endif
index 4f619ad572f347309e21e5354c8dba1b57e70ad8..6aadea1a2242facca8522cf489621480fb2aec95 100644 (file)
@@ -40,12 +40,6 @@ MidSideDecoder::id () const
        return N_("mid-side-decoder");
 }
 
-ChannelCount
-MidSideDecoder::in_channels () const
-{
-       return ChannelCount (2);
-}
-
 int
 MidSideDecoder::out_channels () const
 {
index 13e5ca3605191267a073d2e95202f0059a7fd2d3..f807c929852dcb1a69a46d53542db64064008507 100644 (file)
@@ -24,7 +24,6 @@ class MidSideDecoder : public AudioProcessor
 public:
        std::string name () const;
        std::string id () const;
-       ChannelCount in_channels () const;
        int out_channels () const;
        boost::shared_ptr<AudioProcessor> clone (int) const;
        boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers>, int channels);
index e6ec09c6a9530b2166b50ce3762eed10fdc05f94..a5850cf946f65b6e6efdd97f02fc566f08b5933d 100644 (file)
@@ -52,12 +52,6 @@ UpmixerA::id () const
        return N_("stereo-5.1-upmix-a");
 }
 
-ChannelCount
-UpmixerA::in_channels () const
-{
-       return ChannelCount (2);
-}
-
 int
 UpmixerA::out_channels () const
 {
index a25c3a32927c2add53145d8910f113cd0438739d..654f5f0250f2232e9f4e81867a693167ac6a5bc0 100644 (file)
@@ -34,7 +34,6 @@ public:
 
        std::string name () const;
        std::string id () const;
-       ChannelCount in_channels () const;
        int out_channels () const;
        boost::shared_ptr<AudioProcessor> clone (int) const;
        boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers>, int channels);