From 7a6e86c9f9bef8db74b755db659794c4a859f36d Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 23 Jun 2012 05:08:49 +0000 Subject: [PATCH] Remove unused method PBD::sys::path::branch_path git-svn-id: svn://localhost/ardour2/branches/3.0@12877 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/filesystem.cc | 18 ------------------ libs/pbd/pbd/filesystem.h | 7 ------- 2 files changed, 25 deletions(-) diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index 5cf7f4f002..7dda59895b 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -69,24 +69,6 @@ path::leaf () const return Glib::path_get_basename(m_path); } -path -path::branch_path () const -{ - string dir = Glib::path_get_dirname (m_path); - - /* - * glib returns "." to signify that the path - * has no directory components(branch path) - * whereas boost::filesystem returns an empty - * string - */ - if(dir == ".") - { - return ""; - } - return dir; -} - bool exists (const path & p) { diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index 7af2ab88ef..540efe3551 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -90,13 +90,6 @@ public: */ std::string leaf () const; - /** - * @returns the directory component of a path without any trailing - * path separator or an empty string if the path has no directory - * component(branch path). - */ - path branch_path () const; - private: std::string m_path;