summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-17 19:12:53 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-17 19:12:53 +0100
commit5b6d5f9279eb2410bf56cd621c96ac54322ac8bc (patch)
treeaa841e05eab0d48f6e98c4dd761bc4b382a24a5b
parent2c1bb09578ef094eef2edce9c3ffe502023851c6 (diff)
Remove further unused code after 12da87b
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index dd0b93a8d..3a335868c 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -1027,39 +1027,6 @@ void Fl_WinAPI_System_Driver::awake(void* msg) {
PostThreadMessage( main_thread, fl_wake_msg, (WPARAM)msg, 0);
}
-// create anonymous pipe in the form of 2 unix-style file descriptors
-static void pipe_win32(int fds[2]) {
- HANDLE read_h, write_h;
- SECURITY_ATTRIBUTES sa;
- sa.nLength = sizeof(sa);
- sa.lpSecurityDescriptor = NULL;
- sa.bInheritHandle = true;
- if (CreatePipe(&read_h, &write_h, &sa, 0) == 0) {
- fds[0] = fds[1] = -1; // indicates error
- } else { // create unix-style file descriptors from handles
- fds[0] = _open_osfhandle((fl_intptr_t)read_h, _O_RDONLY | _O_BINARY);
- fds[1] = _open_osfhandle((fl_intptr_t)write_h, _O_WRONLY | _O_BINARY);
- }
-}
-
-struct gunz_data { // data transmitted to thread
- const unsigned char *data;
- unsigned length;
- int fd;
-};
-
-static void __cdecl write_func(struct gunz_data *pdata) { // will run in child thread
- //const unsigned char *from = pdata->data;
- while (pdata->length > 0) {
- int done = _write(pdata->fd, pdata->data, pdata->length);
- if (done == -1) break;
- pdata->length -= done;
- pdata->data += done;
- }
- _close(pdata->fd);
- free(pdata);
-}
-
int Fl_WinAPI_System_Driver::close_fd(int fd) {
return _close(fd);
}