From e31f5d999837b0d0d63dc824c50e9da4acca7244 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 4 Oct 2017 00:35:29 +0200 Subject: Clean up State API: * Processor implement get_state(), classes derived from Processor implement protected ::state() -- as documented in processor.h * likewise for Route, Track: make ::state() a protected interface * removal of "full_state", use explicit "template_save" * use RAII/Unwind to skip saving automation-state --- libs/ardour/internal_send.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libs/ardour/internal_send.cc') diff --git a/libs/ardour/internal_send.cc b/libs/ardour/internal_send.cc index 72e58b6056..9749dab760 100644 --- a/libs/ardour/internal_send.cc +++ b/libs/ardour/internal_send.cc @@ -297,9 +297,9 @@ InternalSend::feeds (boost::shared_ptr other) const } XMLNode& -InternalSend::state (bool full) +InternalSend::state () { - XMLNode& node (Send::state (full)); + XMLNode& node (Send::state ()); /* this replaces any existing "type" property */ @@ -313,12 +313,6 @@ InternalSend::state (bool full) return node; } -XMLNode& -InternalSend::get_state() -{ - return state (true); -} - int InternalSend::set_state (const XMLNode& node, int version) { -- cgit v1.2.3