summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-17 18:20:53 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-17 18:20:53 +0100
commit2c1bb09578ef094eef2edce9c3ffe502023851c6 (patch)
treedac6e29ee4369553c61dce43e14b7c7ec58f1000 /src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
parent8207d73cf28898baf5bd986b8eb5b1736d252d7f (diff)
Remove useless Fl_System_Driver members after 12da87b
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index cdb0805eb..dd0b93a8d 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -1063,18 +1063,3 @@ static void __cdecl write_func(struct gunz_data *pdata) { // will run in child t
int Fl_WinAPI_System_Driver::close_fd(int fd) {
return _close(fd);
}
-
-void Fl_WinAPI_System_Driver::pipe_support(int &fdread, int &fdwrite, const unsigned char *bytes, size_t length) {
- int fds[2];
- pipe_win32(fds); // create anonymous pipe
- if (fds[0] == -1) return Fl_System_Driver::pipe_support(fdread, fdwrite, NULL, 0);
- fdread = fds[0];
- fdwrite = -1;
- // prepare data transmitted to child thread
- struct gunz_data *thread_data = (struct gunz_data*)malloc(sizeof(struct gunz_data));
- thread_data->data = bytes;
- thread_data->length = (unsigned)length;
- thread_data->fd = fds[1];
- // launch child thread that will write byte buffer to pipe's write end
- _beginthread((void( __cdecl * )( void * ))write_func, 0, thread_data);
-}