From 23a612e184387e4440e7a4e3533a8c75ebc6cb97 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 14 Aug 2012 02:01:28 +0200 Subject: [PATCH] settings: remove unused function --- src/settings.cpp | 15 --------------- src/settings.h | 1 - 2 files changed, 16 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index ce5edc2a..6abe2597 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -268,21 +268,6 @@ void NcmpcppKeys::GenerateKeybindings() # undef BIND } -int NcmpcppKeys::GetFirstBinding(const ActionType at) -{ - int result = 0; - std::multimap::const_iterator it = Bindings.begin(); - for (; it != Bindings.end(); ++it) - { - if (it->second->Type() == at) - { - result = it->first; - break; - } - } - return result; -} - void NcmpcppConfig::SetDefaults() { mpd_host = "localhost"; diff --git a/src/settings.h b/src/settings.h index 3655bf50..33a3422c 100644 --- a/src/settings.h +++ b/src/settings.h @@ -53,7 +53,6 @@ struct NcmpcppKeys > Binding; void GenerateKeybindings(); - int GetFirstBinding(const ActionType at); std::multimap Bindings; };