Commit 12d6213e72c6a02990e8c10fb3db3b6455cb9d55
1 parent
4bcea01a
Exists in
master
and in
5 other branches
Removendo código sem uso
Showing
1 changed file
with
0 additions
and
49 deletions
Show diff stats
src/lib3270/iocalls.c
| ... | ... | @@ -81,9 +81,6 @@ static void internal_ring_bell(H3270 *); |
| 81 | 81 | static void * (*add_except)(int source, H3270 *session, void (*fn)(H3270 *session)) |
| 82 | 82 | = internal_add_except; |
| 83 | 83 | |
| 84 | -// static int (*callthread)(int(*callback)(H3270 *, void *), H3270 *session, void *parm) | |
| 85 | -// = internal_callthread; | |
| 86 | - | |
| 87 | 84 | static int (*wait)(H3270 *hSession, int seconds) |
| 88 | 85 | = internal_wait; |
| 89 | 86 | |
| ... | ... | @@ -444,42 +441,6 @@ retry: |
| 444 | 441 | Sleep(tmo); |
| 445 | 442 | } |
| 446 | 443 | |
| 447 | -/* | |
| 448 | - if(events) | |
| 449 | - { | |
| 450 | - DWORD ret = WaitForMultipleObjects(events, ha, FALSE, tmo); | |
| 451 | - | |
| 452 | - if (ret == WAIT_FAILED) | |
| 453 | - { | |
| 454 | - lib3270_popup_dialog( hSession, | |
| 455 | - LIB3270_NOTIFY_ERROR, | |
| 456 | - _( "Network error" ), | |
| 457 | - _( "WaitForMultipleObjects() failed when processing for events." ), | |
| 458 | - "%s", | |
| 459 | - lib3270_win32_strerror(GetLastError())); | |
| 460 | - lib3270_disconnect(hSession); | |
| 461 | - } | |
| 462 | - else | |
| 463 | - { | |
| 464 | - inputs_changed = False; | |
| 465 | - | |
| 466 | - for (i = 0, ip = inputs; ip != (input_t *)NULL; ip = ip->next, i++) | |
| 467 | - { | |
| 468 | - if(ret == WAIT_OBJECT_0 + i) | |
| 469 | - { | |
| 470 | - (*ip->proc)(ip->session); | |
| 471 | - processed_any = True; | |
| 472 | - if (inputs_changed) | |
| 473 | - goto retry; | |
| 474 | - } | |
| 475 | - } | |
| 476 | - } | |
| 477 | - } | |
| 478 | - else if(block) | |
| 479 | - { | |
| 480 | - Sleep(100); | |
| 481 | - } | |
| 482 | -*/ | |
| 483 | 444 | |
| 484 | 445 | #else |
| 485 | 446 | |
| ... | ... | @@ -621,13 +582,6 @@ retry: |
| 621 | 582 | |
| 622 | 583 | } |
| 623 | 584 | |
| 624 | -/* | |
| 625 | -static int internal_callthread(int(*callback)(H3270 *, void *), H3270 *session, void *parm) | |
| 626 | -{ | |
| 627 | - return callback(session,parm); | |
| 628 | -} | |
| 629 | -*/ | |
| 630 | - | |
| 631 | 585 | static int internal_wait(H3270 *hSession, int seconds) |
| 632 | 586 | { |
| 633 | 587 | time_t end; |
| ... | ... | @@ -757,9 +711,6 @@ LIB3270_EXPORT int lib3270_register_handlers(const struct lib3270_callbacks *cbk |
| 757 | 711 | if(cbk->AddExcept) |
| 758 | 712 | add_except = cbk->AddExcept; |
| 759 | 713 | |
| 760 | -// if(cbk->callthread) | |
| 761 | -// callthread = cbk->callthread; | |
| 762 | - | |
| 763 | 714 | if(cbk->Wait) |
| 764 | 715 | wait = cbk->Wait; |
| 765 | 716 | ... | ... |