diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-21 12:12:07 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-21 12:12:07 +0100 |
| commit | 49dae86edf4d1deb7f5e39f57f05a6656137ead1 (patch) | |
| tree | 5f87362bb657b4d7936663bcd9954bc873255c0e /src/Fl_x.cxx | |
| parent | a9412b41bb7f1012402400e56d8dd71f93709f6f (diff) | |
Fix for issue #418 : some warnings about unused functions.
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 6933ee05d..56e316630 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -677,13 +677,6 @@ const char * fl_selection_type[2]; int fl_selection_buffer_length[2]; char fl_i_own_selection[2] = {0,0}; -static void read_int(uchar *c, int& i) { - i = *c; - i |= (*(++c))<<8; - i |= (*(++c))<<16; - i |= (*(++c))<<24; -} - // Call this when a "paste" operation happens: void Fl_X11_Screen_Driver::paste(Fl_Widget &receiver, int clipboard, const char *type) { @@ -837,22 +830,6 @@ void Fl_X11_Screen_Driver::copy(const char *stuff, int len, int clipboard, const XSetSelectionOwner(fl_display, property, fl_message_window, fl_event_time); } -static void write_short(unsigned char **cp, short i) { - unsigned char *c = *cp; - *c++ = i & 0xFF; i >>= 8; - *c++ = i & 0xFF; - *cp = c; -} - -static void write_int(unsigned char **cp, int i) { - unsigned char *c = *cp; - *c++ = i & 0xFF; i >>= 8; - *c++ = i & 0xFF; i >>= 8; - *c++ = i & 0xFF; i >>= 8; - *c++ = i & 0xFF; - *cp = c; -} - // takes a raw RGB image and puts it in the copy/paste buffer void Fl_X11_Screen_Driver::copy_image(const unsigned char *data, int W, int H, int clipboard){ |
