Skip to content

Commit 0dafcf5

Browse files
kevgssvoj
authored andcommitted
cleanup os_event
1 parent ed166f5 commit 0dafcf5

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

storage/innobase/os/os0event.cc

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Created 2012-09-23 Sunny Bains
3131
#include <synchapi.h>
3232
#endif /* _WIN32 */
3333

34-
#include <list>
35-
3634
/** The number of microsecnds in a second. */
3735
static const ulint MICROSECS_IN_A_SECOND = 1000000;
3836

@@ -44,9 +42,6 @@ typedef CONDITION_VARIABLE os_cond_t;
4442
typedef pthread_cond_t os_cond_t;
4543
#endif /* _WIN32 */
4644

47-
typedef std::list<os_event_t, ut_allocator<os_event_t> > os_event_list_t;
48-
typedef os_event_list_t::iterator event_iter_t;
49-
5045
/** InnoDB condition variable. */
5146
struct os_event {
5247
os_event(const char* name) UNIV_NOTHROW;
@@ -234,9 +229,6 @@ struct os_event {
234229
os_cond_t cond_var; /*!< condition variable is
235230
used in waiting for the event */
236231

237-
public:
238-
event_iter_t event_iter; /*!< For O(1) removal from
239-
list */
240232
protected:
241233
// Disable copying
242234
os_event(const os_event&);
@@ -544,8 +536,6 @@ os_event_destroy(
544536
os_event_t& event) /*!< in/own: event to free */
545537

546538
{
547-
if (event != NULL) {
548-
UT_DELETE(event);
549-
event = NULL;
550-
}
539+
UT_DELETE(event);
540+
event = NULL;
551541
}

0 commit comments

Comments
 (0)