From b1c462beb8b9e0bae7f8886054eee2fe361149a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 28 Nov 2015 18:45:07 +0100 Subject: view: remove ViewEvent infrastructure The only used event handler was used to update the '< and '> marks which is now taken care of by the leave handler of the visual modes. --- view.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'view.h') diff --git a/view.h b/view.h index 4447dd7..25b186f 100644 --- a/view.h +++ b/view.h @@ -12,11 +12,6 @@ typedef struct View View; typedef struct Cursor Cursor; typedef struct Selection Selection; -typedef struct { - void *data; - void (*selection)(void *data, Filerange*); -} ViewEvent; - typedef struct { int width; /* display width i.e. number of columns ocupied by this character */ size_t len; /* number of bytes the character displayed in this cell uses, for @@ -45,7 +40,7 @@ typedef struct { size_t col; } CursorPos; -View *view_new(Text*, lua_State*, ViewEvent*); +View *view_new(Text*, lua_State*); void view_ui(View*, UiWin*); /* change associated text displayed in this window */ void view_reload(View*, Text*); -- cgit v1.2.3