repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 39f069b6036bbe518322c7493c501b6a10ee2951: path_to: revision_to:
commit 39f069b6036bbe518322c7493c501b6a10ee2951 Author: Emanuele GiaquintaDate: Fri Oct 22 16:49:26 2010 +0000 Remove debugging stuff. diff --git a/src/background.C b/src/background.C
--- a/src/background.C
+++ b/src/background.C
@@ -430,8 +430,6 @@ bgPixmap_t::set_geometry (const char *geom)
changed++;
}
- //fprintf (stderr, "flags = %lX, scale = %ux%u, align=%+d%+d\n",
- // flags, h_scale, v_scale, h_align, v_align);
return (changed > 0);
}
diff --git a/src/command.C b/src/command.C
--- a/src/command.C
+++ b/src/command.C
@@ -1432,9 +1432,6 @@ rxvt_term::x_cb (XEvent &ev)
break;
case ConfigureNotify:
- /*fprintf (stderr, "ConfigureNotify for %X, parent is %X, geom is %dx%d%+d%+d, old geom was %dx%d\n",
- ev.xconfigure.window, parent[0], ev.xconfigure.width, ev.xconfigure.height, ev.xconfigure.x, ev.xconfigure.y,
- szHint.width, szHint.height);*/
if (ev.xconfigure.window == parent[0])
{
while (XCheckTypedWindowEvent (dpy, ev.xconfigure.window, ConfigureNotify, &ev))
diff --git a/src/main.C b/src/main.C
--- a/src/main.C
+++ b/src/main.C
@@ -1628,7 +1628,6 @@ rxvt_term::get_window_origin (int &x, int &y)
{
Window cr;
XTranslateCoordinates (dpy, parent[0], display->root, 0, 0, &x, &y, &cr);
-/* fprintf (stderr, "origin is %+d%+d\n", x, y);*/
}
Pixmap
@@ -1652,15 +1651,6 @@ rxvt_term::get_pixmap_property (int prop_id)
}
#ifdef HAVE_BG_PIXMAP
-# if TRACE_PIXMAPS
-# undef update_background
-void
-rxvt_term::trace_update_background (const char *file, int line)
-{
- fprintf (stderr, "%s:%d:update_background()\n", file, line);
- update_background ();
-}
-# endif
void
rxvt_term::update_background ()
diff --git a/src/rxvt.h b/src/rxvt.h
--- a/src/rxvt.h +++ b/src/rxvt.h @@ -1160,10 +1160,6 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen #endif #ifdef HAVE_BG_PIXMAP void update_background (); -#if TRACE_PIXMAPS - void trace_update_background (const char *file, int line); -# define update_background() trace_update_background (__FILE__, __LINE__) -#endif void update_background_cb (ev::timer &w, int revents); ev::timer update_background_ev; #endif diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C
--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -886,19 +886,3 @@ rxvt_color::fade (rxvt_screen *screen, int percent, rxvt_color &result, const rg
);
}
-#if TRACE_PIXMAPS
-# undef XCreatePixmap
-# undef XFreePixmap
-Pixmap trace_XCreatePixmap (const char *file, int line, Display *dpy, Window r, unsigned int w, unsigned int h, unsigned int d)
-{
- Pixmap res = XCreatePixmap (dpy, r, w, h, d);
- fprintf (stderr, "%s:%d: XCreatePixmap (%p,%lX,%u,%u,%u) returned %lX\n", file, line, dpy, r, w, h, d, res);
- return res;
-}
-
-void trace_XFreePixmap (const char *file, int line, Display *dpy, Pixmap p)
-{
- fprintf (stderr, "%s:%d: XFreePixmap (%p,%lX)\n", file, line, dpy, p);
- XFreePixmap (dpy,p);
-}
-#endif
diff --git a/src/rxvttoolkit.h b/src/rxvttoolkit.h
--- a/src/rxvttoolkit.h +++ b/src/rxvttoolkit.h @@ -355,13 +355,5 @@ struct rxvt_color void fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to = rgba (0, 0, 0)); }; -#if TRACE_PIXMAPS -Pixmap trace_XCreatePixmap (const char *file, int line, Display *dpy, Window r, unsigned int w, unsigned int h, unsigned int d); -void trace_XFreePixmap (const char *file, int line, Display *dpy, Pixmap p); - -# define XCreatePixmap(dpy,r,w,h,d) trace_XCreatePixmap (__FILE__,__LINE__,dpy,r,w,h,d) -# define XFreePixmap(dpy,p) trace_XFreePixmap (__FILE__,__LINE__,dpy,p) -#endif - #endif
-----END OF PAGE-----