diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-02-22 19:06:13 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-02-22 19:06:13 +0000 |
commit | 5d34d48a4b447497018da3f943b3bd2d9bf91d5d (patch) | |
tree | f983491857a7eff4a8837f6ce942a6cab45ed2dd /amiga/clipboard.c | |
parent | 84fca8a29cb60f0eaad1c578769d0facb5065ea3 (diff) | |
download | netsurf-5d34d48a4b447497018da3f943b3bd2d9bf91d5d.tar.gz netsurf-5d34d48a4b447497018da3f943b3bd2d9bf91d5d.tar.bz2 |
Remove obsolete ami_selection_to_text
Diffstat (limited to 'amiga/clipboard.c')
-rw-r--r-- | amiga/clipboard.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/amiga/clipboard.c b/amiga/clipboard.c index 2fe016b10..7be73bb56 100644 --- a/amiga/clipboard.c +++ b/amiga/clipboard.c @@ -286,35 +286,6 @@ void gui_set_clipboard(const char *buffer, size_t length, } } -struct ami_text_selection *ami_selection_to_text(struct gui_window_2 *gwin) -{ - struct ami_text_selection *sel; - int len; - char *ss; - - sel = AllocVec(sizeof(struct ami_text_selection), - MEMF_PRIVATE | MEMF_CLEAR); - - if (sel) { - /* Get selection string */ - ss = browser_window_get_selection(gwin->bw); - if (ss == NULL) - return sel; - - len = strlen(ss); - - if (len > sizeof(sel->text)) - len = sizeof(sel->text) - 1; - - memcpy(sel->text, ss, len); - sel->length = len; - sel->text[sel->length] = '\0'; - - free(ss); - } - return sel; -} - void ami_drag_selection(struct gui_window *g) { int x; |