Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2018, 3:24:00 PM (6 years ago)
Author:
mdedial
Message:

Clean up code, remove TODOs and dead code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Masterserver_FS18/src/libraries/network/Connection.cc

    r11880 r11990  
    7272    delete this->incomingEventsMutex_;
    7373    delete this->outgoingEventsMutex_;
    74 
    75     // TODO: Why is enet_deinitialize() not called here?
    76     // Would make sense, since its counterpart, enet_initialize(), is called in the constructor.
    7774  }
    7875
     
    172169     
    173170      // Sleep for 1ms
    174       // TODO: Why?
    175171      msleep(1);
    176172     
    177173      // Send all waiting outgoing packets
    178       // TODO: Why do we need a mutex to read a single variable?
    179174      this->outgoingEventsMutex_->lock();
    180175      uint32_t outgoingEventsCount = this->outgoingEvents_.size();
    181176      this->outgoingEventsMutex_->unlock();
    182177
    183       // TODO: Not convinced about how mutexes are used here, seems kinda pointless
    184178      while(outgoingEventsCount > 0)
    185179      {
     
    406400  }
    407401
    408 
    409402}
Note: See TracChangeset for help on using the changeset viewer.