From 268d53f5028c222d1f3b5d91b186eba52c5db6c8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 9 Oct 2015 07:39:08 -0400 Subject: remove unused PortManager::port_name_prefix_is_unique() method --- libs/ardour/ardour/port_manager.h | 1 - libs/ardour/port_manager.cc | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/libs/ardour/ardour/port_manager.h b/libs/ardour/ardour/port_manager.h index 4678c5231a..21ba2213e6 100644 --- a/libs/ardour/ardour/port_manager.h +++ b/libs/ardour/ardour/port_manager.h @@ -80,7 +80,6 @@ class LIBARDOUR_API PortManager std::string make_port_name_non_relative (const std::string& name) const; std::string get_pretty_name_by_name (const std::string& portname) const; bool port_is_mine (const std::string& fullname) const; - bool port_name_prefix_is_unique (const std::string& first_part_of_port_name) const; /* other Port management */ diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 5b8693e548..874d36d882 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -192,28 +192,6 @@ PortManager::n_physical_inputs () const return _backend->n_physical_inputs (); } -bool -PortManager::port_name_prefix_is_unique (const string& first_part_of_port_name) const -{ - if (!_backend) { - return boost::shared_ptr(); - } - - boost::shared_ptr pr = ports.reader(); - const string::size_type len = first_part_of_port_name.length(); - - for (Ports::const_iterator x = pr->begin(); x != pr->end(); ++x) { - - string prefix = x->first.substr (0, len); - - if (strings_equal_ignore_case (prefix, first_part_of_port_name)) { - return false; - } - } - - return true; -} - /** @param name Full or short name of port * @return Corresponding Port or 0. */ -- cgit v1.2.3