summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--new/uipriv.h4
-rw-r--r--new/window_darwin.m1
-rw-r--r--new/window_unix.c2
-rw-r--r--new/window_windows.c3
4 files changed, 1 insertions, 9 deletions
diff --git a/new/uipriv.h b/new/uipriv.h
index 30fca00..ccd72e8 100644
--- a/new/uipriv.h
+++ b/new/uipriv.h
@@ -2,10 +2,6 @@
#include <stdlib.h>
#include "ui.h"
-#include <stdio.h>
-#define LOGALLOC(p, ty) fprintf(stderr, "%p %s ALLOC\n", p, #ty );
-#define LOGFREE(p, ty) fprintf(stderr, "%p %s FREE\n", p, #ty );
-
typedef struct uiSize uiSize;
typedef struct uiSizing uiSizing;
diff --git a/new/window_darwin.m b/new/window_darwin.m
index a5f1b2d..8beb008 100644
--- a/new/window_darwin.m
+++ b/new/window_darwin.m
@@ -40,7 +40,6 @@ uiWindow *uiNewWindow(char *title, int width, int height)
uiWindow *w;
w = (uiWindow *) uiAlloc(sizeof (uiWindow));
-LOGALLOC(w, uiWindow)
w->w = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, (CGFloat) width, (CGFloat) height)
styleMask:(NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask)
diff --git a/new/window_unix.c b/new/window_unix.c
index 734b156..3d6f8e7 100644
--- a/new/window_unix.c
+++ b/new/window_unix.c
@@ -12,7 +12,6 @@ static void onDestroy(GtkWindow *window, gpointer data)
{
uiWindow *w = (uiWindow *) data;
-LOGFREE(w, uiWindow)
uiFree(w);
}
@@ -21,7 +20,6 @@ uiWindow *uiNewWindow(char *title, int width, int height)
uiWindow *w;
w = uiNew(uiWindow);
-LOGALLOC(w, uiWindow)
w->widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(w->widget), title);
gtk_window_resize(GTK_WINDOW(w->widget), width, height);
diff --git a/new/window_windows.c b/new/window_windows.c
index 50e7a88..58f4106 100644
--- a/new/window_windows.c
+++ b/new/window_windows.c
@@ -46,7 +46,6 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA
return 0;
break; // fall through to DefWindowProcW()
case WM_DESTROY:
-LOGFREE(w, uiWindow)
uiFree(w);
break; // fall through to DefWindowProcW()
}
@@ -82,7 +81,7 @@ uiWindow *uiNewWindow(char *title, int width, int height)
WCHAR *wtitle;
w = uiNew(uiWindow);
-LOGALLOC(w, uiWindow)
+ // TODO move other cases of default events here relative
w->onClosing = defaultOnClosing;
adjust.left = 0;