remove unused PortManager::port_name_prefix_is_unique() method
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 9 Oct 2015 11:39:08 +0000 (07:39 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 9 Oct 2015 11:39:08 +0000 (07:39 -0400)
libs/ardour/ardour/port_manager.h
libs/ardour/port_manager.cc

index 4678c5231aa5af8ae6f3f4da12cb77d1b244f3a4..21ba2213e6600b6333458293825e245ce569ab53 100644 (file)
@@ -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 */
 
index 5b8693e5488a49b7ef11e4e2a02d49f52cadc82d..874d36d8828ae19730fa968046d25449aa490f22 100644 (file)
@@ -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<Port>();
-       }
-
-       boost::shared_ptr<const Ports> 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.
  */