settings: remove unused function

master
Andrzej Rybczak 14 years ago
parent 9ae502e66e
commit 23a612e184
  1. 15
      src/settings.cpp
  2. 1
      src/settings.h

@ -268,21 +268,6 @@ void NcmpcppKeys::GenerateKeybindings()
# undef BIND
}
int NcmpcppKeys::GetFirstBinding(const ActionType at)
{
int result = 0;
std::multimap<int, Action *>::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";

@ -53,7 +53,6 @@ struct NcmpcppKeys
> Binding;
void GenerateKeybindings();
int GetFirstBinding(const ActionType at);
std::multimap<int, Action *> Bindings;
};

Loading…
Cancel
Save