From c89c70888869a3cf54633016b3b0bc7f7a219f4c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 25 Jan 2011 12:28:26 +0200 Subject: client: gcc 4.6.0: two more unused variable fixes --- client/hot_keys.cpp | 2 -- client/red_client.cpp | 1 - 2 files changed, 3 deletions(-) (limited to 'client') diff --git a/client/hot_keys.cpp b/client/hot_keys.cpp index d6564b70..929755ac 100644 --- a/client/hot_keys.cpp +++ b/client/hot_keys.cpp @@ -135,8 +135,6 @@ void HotKeysParser::add_hotkey(const std::string& hotkey, const CommandsMap& com } std::string command_name = hotkey.substr(0, key_start); - CommandsMap::const_iterator command = commands_map.find(command_name); - if (commands_map.find(command_name) == commands_map.end()) { char buf[1000]; sprintf(buf, "invalid action bname %s", command_name.c_str()); diff --git a/client/red_client.cpp b/client/red_client.cpp index 46d56022..0a53d2ef 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -464,7 +464,6 @@ void RedClient::on_disconnect() void RedClient::delete_channels() { Lock lock(_channels_lock); - Channels::iterator iter = _channels.begin(); while (!_channels.empty()) { RedChannel *channel = *_channels.begin(); _channels.pop_front(); -- cgit