diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-04-29 22:04:34 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-02 09:34:01 +0100 |
commit | 50d7a2288c84e3586ab99e6fc7b41482ac49074e (patch) | |
tree | a92e655bad0a1b3f9cdd9784119ba465ba46d72e /desktop | |
parent | 6b178fb3fec17aa9e81571567bec6d49def4501c (diff) | |
download | netsurf-50d7a2288c84e3586ab99e6fc7b41482ac49074e.tar.gz netsurf-50d7a2288c84e3586ab99e6fc7b41482ac49074e.tar.bz2 |
Remove redundant read-only test function.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/selection.c | 13 | ||||
-rw-r--r-- | desktop/selection.h | 5 |
2 files changed, 0 insertions, 18 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index e8978d448..1b85a090c 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -211,19 +211,6 @@ void selection_init(struct selection *s, struct box *root) /** - * Indicate whether the selected text is read only, ie. cannot be modified. - * - * \param s selection object - * \return true iff the selection is read only - */ - -bool selection_read_only(struct selection *s) -{ - return true; -} - - -/** * Label each text box in the given box subtree with its position * in a textual representation of the content. * diff --git a/desktop/selection.h b/desktop/selection.h index 5e3286fc5..7e620fc46 100644 --- a/desktop/selection.h +++ b/desktop/selection.h @@ -75,8 +75,6 @@ void selection_reinit(struct selection *s, struct box *root); /* bool selection_dragging_start(struct selection *s); */ #define selection_dragging_start(s) ((s)->drag_state == DRAG_START) -bool selection_read_only(struct selection *s); - void selection_clear(struct selection *s, bool redraw); void selection_select_all(struct selection *s); @@ -99,7 +97,4 @@ bool selection_highlighted(const struct selection *s, unsigned start, unsigned end, unsigned *start_idx, unsigned *end_idx); -void selection_update(struct selection *s, size_t byte_offset, int change, - bool redraw); - #endif |