From 6d7302a3a4ed22139981bba73dce89c432051b0c Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 23 Jun 2012 05:08:55 +0000 Subject: [PATCH] Remove unused method PBD::sys::path::leaf git-svn-id: svn://localhost/ardour2/branches/3.0@12880 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/filesystem.cc | 6 ------ libs/pbd/pbd/filesystem.h | 6 ------ 2 files changed, 12 deletions(-) diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index 7dda59895b..8915581bc5 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -63,12 +63,6 @@ path::operator/=(const char* rhs) return *this; } -string -path::leaf () const -{ - return Glib::path_get_basename(m_path); -} - bool exists (const path & p) { diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index 540efe3551..7bedeadb23 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -84,12 +84,6 @@ public: const std::string to_string() const { return m_path; } - /** - * @return the last component of the path, if the path refers to - * a file then it will be the entire filename including any extension. - */ - std::string leaf () const; - private: std::string m_path;