Remove/replace functional_fun.h functions

This commit is contained in:
kannibalox
2024-12-18 12:01:43 -05:00
committed by Jari Sundell
parent 0d1b9e9d55
commit cd9948a4a8
9 changed files with 7 additions and 670 deletions
+2 -3
View File
@@ -40,7 +40,6 @@
#include <cstdint>
#include <vector>
#include <string>
#include <rak/functional_fun.h>
namespace torrent {
class Object;
@@ -52,7 +51,7 @@ class CommandSchedulerItem;
class CommandScheduler : public std::vector<CommandSchedulerItem*> {
public:
typedef rak::function1<void, const std::string&> SlotString;
typedef std::function<void (const std::string&)> SlotString;
typedef std::pair<int, int> Time;
typedef std::vector<CommandSchedulerItem*> base_type;
@@ -63,7 +62,7 @@ public:
CommandScheduler() {}
~CommandScheduler();
void set_slot_error_message(SlotString::base_type* s) { m_slotErrorMessage.set(s); }
void set_slot_error_message(SlotString s) { m_slotErrorMessage = s; }
// slot_error_message or something.