Remove unused method.
[ardour.git] / libs / ardour / io_processor.cc
index d1b7e9c232103d6c63e7adcb90438ea9efc66142..8cad0ba6cb8c467410d9ba0387552152b0e465f8 100644 (file)
@@ -146,6 +146,10 @@ IOProcessor::state (bool full_state)
 int
 IOProcessor::set_state (const XMLNode& node, int version)
 {
+       if (version < 3000) {
+               return set_state_2X (node, version);
+       }
+
        const XMLProperty *prop;
        const XMLNode *io_node = 0;
 
@@ -227,8 +231,18 @@ IOProcessor::set_state (const XMLNode& node, int version)
        return 0;
 }
 
+int
+IOProcessor::set_state_2X (const XMLNode& node, int version)
+{
+       _own_input = _own_output = true;
+
+       Processor::set_state_2X (node, version);
+
+       return 0;
+}
+
 void
-IOProcessor::silence (nframes_t nframes)
+IOProcessor::silence (framecnt_t nframes)
 {
        if (_own_output && _output) {
                _output->silence (nframes);