diff --git a/BaseLib/FileTools.h b/BaseLib/FileTools.h
index d85cabd9ce3e24796dcd87c5e8a1c36673b06184..b33a3571549ed35906b3a400535d652a2ff90892 100644
--- a/BaseLib/FileTools.h
+++ b/BaseLib/FileTools.h
@@ -54,11 +54,6 @@ template <typename T> void writeValueBinary(std::ostream &out, T const& val)
  */
 void truncateFile( std::string const& file_path);
 
-/**
- * Extract the filename from a path
- */
-std::string getFileNameFromPath(const std::string &str, bool with_extension = false);
-
 /**
  * Extracts basename from given pathname with extension.
  */