Changeset b929e35


Ignore:
Timestamp:
Mar 25, 2011, 3:55:41 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
b9c7424
Parents:
bb54113
git-author:
David Benjamin <davidben@mit.edu> (02/28/11 10:18:49)
git-committer:
David Benjamin <davidben@mit.edu> (03/25/11 03:55:41)
Message:
Remove owl_select_aim_hack and _owl_select_timer_eq

They're not used anymore. Also mark some functions static.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • select.c

    rbb54113 rb929e35  
    66static GSource *owl_timer_source;
    77static GSource *owl_io_dispatch_source;
     8
     9static int _owl_select_timer_cmp(const owl_timer *t1, const owl_timer *t2);
     10static void owl_select_io_dispatch_gc(void);
    811
    912static gboolean owl_timer_prepare(GSource *source, int *timeout) {
     
    9093};
    9194
    92 int _owl_select_timer_cmp(const owl_timer *t1, const owl_timer *t2) {
     95static int _owl_select_timer_cmp(const owl_timer *t1, const owl_timer *t2) {
    9396  return t1->time - t2->time;
    94 }
    95 
    96 int _owl_select_timer_eq(const owl_timer *t1, const owl_timer *t2) {
    97   return t1 == t2;
    9897}
    9998
     
    225224}
    226225
    227 void owl_select_io_dispatch_gc(void)
     226static void owl_select_io_dispatch_gc(void)
    228227{
    229228  int i;
     
    300299}
    301300
    302 int owl_select_aim_hack(fd_set *rfds, fd_set *wfds)
    303 {
    304   aim_conn_t *cur;
    305   aim_session_t *sess;
    306   int max_fd;
    307 
    308   max_fd = 0;
    309   sess = owl_global_get_aimsess(&g);
    310   for (cur = sess->connlist; cur; cur = cur->next) {
    311     if (cur->fd != -1) {
    312       FD_SET(cur->fd, rfds);
    313       if (cur->status & AIM_CONN_STATUS_INPROGRESS) {
    314         /* Yes, we're checking writable sockets here. Without it, AIM
    315            login is really slow. */
    316         FD_SET(cur->fd, wfds);
    317       }
    318      
    319       if (cur->fd > max_fd)
    320         max_fd = cur->fd;
    321     }
    322   }
    323   return max_fd;
    324 }
    325 
    326301void owl_process_input_char(owl_input j)
    327302{
Note: See TracChangeset for help on using the changeset viewer.