From 50a2aa1dec11cadc34531e57cff3265f49ce0686 Mon Sep 17 00:00:00 2001 From: BevapDin Date: Sat, 9 Nov 2019 19:39:41 +0100 Subject: [PATCH] Remove the FILENAMES map. It's not used by anything anymore. --- src/path_info.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/path_info.cpp b/src/path_info.cpp index b5c926d89905a..0c6b0243db702 100644 --- a/src/path_info.cpp +++ b/src/path_info.cpp @@ -26,7 +26,6 @@ static std::string find_translated_file( const std::string &path, const std::str static void update_datadir(); static void update_config_dir(); -static void update_pathname( const std::string &name, const std::string &path ); static std::string motd_value; static std::string gfxdir_value; @@ -40,9 +39,6 @@ static std::string keymap_value; static std::string options_value; static std::string memorialdir_value; -/** Map where we store filenames */ -std::map FILENAMES; - void PATH_INFO::init_base_path( std::string path ) { if( !path.empty() ) { @@ -84,16 +80,6 @@ void PATH_INFO::init_user_dir( const char *ud ) user_dir_value = dir; } -void update_pathname( const std::string &name, const std::string &path ) -{ - const std::map::iterator iter = FILENAMES.find( name ); - if( iter != FILENAMES.end() ) { - FILENAMES[name] = path; - } else { - FILENAMES.insert( std::pair( name, path ) ); - } -} - void update_datadir() { // Shared dirs