Skip to content

Commit

Permalink
cleanup os_event
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and Sergey Vojtovich committed Dec 21, 2018
1 parent ed166f5 commit 0dafcf5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions storage/innobase/os/os0event.cc
Expand Up @@ -31,8 +31,6 @@ Created 2012-09-23 Sunny Bains
#include <synchapi.h>
#endif /* _WIN32 */

#include <list>

/** The number of microsecnds in a second. */
static const ulint MICROSECS_IN_A_SECOND = 1000000;

Expand All @@ -44,9 +42,6 @@ typedef CONDITION_VARIABLE os_cond_t;
typedef pthread_cond_t os_cond_t;
#endif /* _WIN32 */

typedef std::list<os_event_t, ut_allocator<os_event_t> > os_event_list_t;
typedef os_event_list_t::iterator event_iter_t;

/** InnoDB condition variable. */
struct os_event {
os_event(const char* name) UNIV_NOTHROW;
Expand Down Expand Up @@ -234,9 +229,6 @@ struct os_event {
os_cond_t cond_var; /*!< condition variable is
used in waiting for the event */

public:
event_iter_t event_iter; /*!< For O(1) removal from
list */
protected:
// Disable copying
os_event(const os_event&);
Expand Down Expand Up @@ -544,8 +536,6 @@ os_event_destroy(
os_event_t& event) /*!< in/own: event to free */

{
if (event != NULL) {
UT_DELETE(event);
event = NULL;
}
UT_DELETE(event);
event = NULL;
}

0 comments on commit 0dafcf5

Please sign in to comment.