cleanup: Remove rak mem_fun

This commit removes rak:mem_fun and replaces it with std::function and lambdas.
This commit is contained in:
stickz
2025-01-12 10:11:27 -05:00
parent d412caea66
commit c5563d65c5
4 changed files with 9 additions and 177 deletions
+4 -5
View File
@@ -38,7 +38,7 @@
#define RTORRENT_WINDOW_BASE_H
#include <rak/timer.h>
#include <rak/functional.h>
#include <functional>
#include "canvas.h"
#include "globals.h"
@@ -46,15 +46,14 @@
namespace display {
class Canvas;
class Manager;
class Window {
public:
typedef uint32_t extent_type;
typedef rak::mem_fun0<Manager, void> Slot;
typedef rak::mem_fun1<Manager, void, Window*> SlotWindow;
typedef rak::mem_fun2<Manager, void, Window*, rak::timer> SlotTimer;
typedef std::function<void()> Slot;
typedef std::function<void(Window*)> SlotWindow;
typedef std::function<void(Window*, rak::timer)> SlotTimer;
static const int flag_active = (1 << 0);
static const int flag_offscreen = (1 << 1);