File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ Created 2012-09-23 Sunny Bains
31
31
#include < synchapi.h>
32
32
#endif /* _WIN32 */
33
33
34
- #include < list>
35
-
36
34
/* * The number of microsecnds in a second. */
37
35
static const ulint MICROSECS_IN_A_SECOND = 1000000 ;
38
36
@@ -44,9 +42,6 @@ typedef CONDITION_VARIABLE os_cond_t;
44
42
typedef pthread_cond_t os_cond_t ;
45
43
#endif /* _WIN32 */
46
44
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
-
50
45
/* * InnoDB condition variable. */
51
46
struct os_event {
52
47
os_event (const char * name) UNIV_NOTHROW;
@@ -234,9 +229,6 @@ struct os_event {
234
229
os_cond_t cond_var; /* !< condition variable is
235
230
used in waiting for the event */
236
231
237
- public:
238
- event_iter_t event_iter; /* !< For O(1) removal from
239
- list */
240
232
protected:
241
233
// Disable copying
242
234
os_event (const os_event&);
@@ -544,8 +536,6 @@ os_event_destroy(
544
536
os_event_t & event) /* !< in/own: event to free */
545
537
546
538
{
547
- if (event != NULL ) {
548
- UT_DELETE (event);
549
- event = NULL ;
550
- }
539
+ UT_DELETE (event);
540
+ event = NULL ;
551
541
}
You can’t perform that action at this time.
0 commit comments