[gtk+] gdk: Remove GDK_PANGO_UNITS_OVERFLOWS() from internal headers



commit 585c4895776f2a51b14eff6f28b9a57e12d2ba29
Author: Benjamin Otte <otte redhat com>
Date:   Thu Nov 25 15:04:45 2010 +0100

    gdk: Remove GDK_PANGO_UNITS_OVERFLOWS() from internal headers
    
    It's unused.

 gdk/gdkprivate.h |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gdk/gdkprivate.h b/gdk/gdkprivate.h
index 8e70c98..147d2d1 100644
--- a/gdk/gdkprivate.h
+++ b/gdk/gdkprivate.h
@@ -42,16 +42,6 @@ void gdk_synthesize_window_state (GdkWindow     *window,
                                   GdkWindowState unset_flags,
                                   GdkWindowState set_flags);
 
-/* Tests whether a pair of x,y may cause overflows when converted to Pango
- * units (multiplied by PANGO_SCALE).  We don't allow the entire range, leave
- * some space for additions afterwards, to be safe...
- */
-#define GDK_PANGO_UNITS_OVERFLOWS(x,y) (G_UNLIKELY ( \
-	(y) >= PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2 || \
-	(x) >= PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2 || \
-	(y) <=-PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2 || \
-	(x) <=-PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2))
-
 G_END_DECLS
 
 #endif /* __GDK_PRIVATE_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]