mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02:30 +00:00
* More cleanup of commands, including some optimization by avoiding
some heap allocations. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@893 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+1
-4
@@ -44,10 +44,10 @@
|
||||
#include "core/view_manager.h"
|
||||
#include "utils/command_slot.h"
|
||||
#include "utils/parse.h"
|
||||
#include "utils/variable_map.h"
|
||||
|
||||
#include "globals.h"
|
||||
#include "control.h"
|
||||
#include "command_helpers.h"
|
||||
|
||||
typedef void (core::ViewManager::*view_filter_slot)(const std::string&, const core::ViewManager::sort_args&);
|
||||
|
||||
@@ -91,9 +91,6 @@ apply_view_sort(const torrent::Object& rawArgs) {
|
||||
control->view_manager()->sort(name, value);
|
||||
}
|
||||
|
||||
#define ADD_COMMAND_SLOT(key, function, slot) \
|
||||
variables->insert(key, new utils::CommandSlot(slot), &utils::CommandSlot::function);
|
||||
|
||||
void
|
||||
initialize_command_ui() {
|
||||
utils::VariableMap* variables = control->variable();
|
||||
|
||||
Reference in New Issue
Block a user