enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / ardour / session_events.cc
index d41b9c50021169dc1ccabe9529a4524dc374fb67..6e17545fc34e604e7afcf994b2be4c20302ac837 100644 (file)
@@ -28,7 +28,7 @@
 #include "ardour/debug.h"
 #include "ardour/session_event.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -42,6 +42,12 @@ SessionEvent::init_event_pool ()
        pool = new PerThreadPool;
 }
 
+bool
+SessionEvent::has_per_thread_pool ()
+{
+       return pool->has_per_thread_pool ();
+}
+
 void
 SessionEvent::create_per_thread_pool (const std::string& name, uint32_t nitems)
 {
@@ -73,12 +79,7 @@ SessionEvent::operator new (size_t)
        SessionEvent* ev = static_cast<SessionEvent*> (p->alloc ());
        DEBUG_TRACE (DEBUG::SessionEvents, string_compose ("%1 Allocating SessionEvent from %2 ev @ %3 pool size %4 free %5 used %6\n", pthread_name(), p->name(), ev,
                                                           p->total(), p->available(), p->used()));
-                                                          
-#ifndef NDEBUG
-       if (DEBUG::SessionEvents & PBD::debug_bits) {
-               // stacktrace (cerr, 40);
-       }
-#endif
+
        ev->own_pool = p;
        return ev;
 }
@@ -94,12 +95,6 @@ SessionEvent::operator delete (void *ptr, size_t /*size*/)
                             pthread_name(), ev, enum_2_string (ev->type), enum_2_string (ev->action), p->name(), ev->own_pool->name(), ev->own_pool->total(), ev->own_pool->available(), ev->own_pool->used()
                             ));
 
-#ifndef NDEBUG
-       if (DEBUG::SessionEvents & PBD::debug_bits) {
-               // stacktrace (cerr, 40);
-       }
-#endif
-
        if (p && p == ev->own_pool) {
                p->release (ptr);
        } else {