[gtk] drawingcontext: Remove unused APIs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] drawingcontext: Remove unused APIs
- Date: Thu, 12 Apr 2018 13:00:49 +0000 (UTC)
commit 39d930c065da341999db5e7428c00b7ef5780c0d
Author: Benjamin Otte <otte redhat com>
Date: Wed Apr 11 19:20:17 2018 +0200
drawingcontext: Remove unused APIs
docs/reference/gdk/gdk4-sections.txt | 2 --
gdk/gdkdrawingcontext.c | 41 ------------------------------------
gdk/gdkdrawingcontext.h | 5 -----
3 files changed, 48 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index fcb247b6ac..c3df377949 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -1188,10 +1188,8 @@ GDK_IS_MONITOR
<SECTION>
<FILE>gdkdrawingcontext</FILE>
GdkDrawingContext
-gdk_drawing_context_get_surface
gdk_drawing_context_get_clip
gdk_drawing_context_get_cairo_context
-gdk_drawing_context_is_valid
gdk_drawing_context_get_paint_context
<SUBSECTION Standard>
diff --git a/gdk/gdkdrawingcontext.c b/gdk/gdkdrawingcontext.c
index 9489ecb93f..d25a421e34 100644
--- a/gdk/gdkdrawingcontext.c
+++ b/gdk/gdkdrawingcontext.c
@@ -289,24 +289,6 @@ gdk_drawing_context_get_cairo_context (GdkDrawingContext *context)
return priv->cr;
}
-/**
- * gdk_drawing_context_get_surface:
- * @context: a #GdkDrawingContext
- *
- * Retrieves the surface that created the drawing @context.
- *
- * Returns: (transfer none): a #GdkSurface
- */
-GdkSurface *
-gdk_drawing_context_get_surface (GdkDrawingContext *context)
-{
- GdkDrawingContextPrivate *priv = gdk_drawing_context_get_instance_private (context);
-
- g_return_val_if_fail (GDK_IS_DRAWING_CONTEXT (context), NULL);
-
- return priv->surface;
-}
-
/**
* gdk_drawing_context_get_paint_context:
* @context: a #GdkDrawingContext
@@ -346,26 +328,3 @@ gdk_drawing_context_get_clip (GdkDrawingContext *context)
return cairo_region_copy (priv->clip);
}
-/**
- * gdk_drawing_context_is_valid:
- * @context: a #GdkDrawingContext
- *
- * Checks whether the given #GdkDrawingContext is valid.
- *
- * Returns: %TRUE if the context is valid
- */
-gboolean
-gdk_drawing_context_is_valid (GdkDrawingContext *context)
-{
- GdkDrawingContextPrivate *priv = gdk_drawing_context_get_instance_private (context);
-
- g_return_val_if_fail (GDK_IS_DRAWING_CONTEXT (context), FALSE);
-
- if (priv->surface == NULL)
- return FALSE;
-
- if (gdk_surface_get_drawing_context (priv->surface) != context)
- return FALSE;
-
- return TRUE;
-}
diff --git a/gdk/gdkdrawingcontext.h b/gdk/gdkdrawingcontext.h
index 541e30bbe1..44bb43b89c 100644
--- a/gdk/gdkdrawingcontext.h
+++ b/gdk/gdkdrawingcontext.h
@@ -36,16 +36,11 @@ typedef struct _GdkDrawingContextClass GdkDrawingContextClass;
GDK_AVAILABLE_IN_ALL
GType gdk_drawing_context_get_type (void) G_GNUC_CONST;
-GDK_AVAILABLE_IN_ALL
-GdkSurface * gdk_drawing_context_get_surface (GdkDrawingContext *context);
GDK_AVAILABLE_IN_ALL
GdkDrawContext* gdk_drawing_context_get_paint_context (GdkDrawingContext *context);
GDK_AVAILABLE_IN_ALL
cairo_region_t *gdk_drawing_context_get_clip (GdkDrawingContext *context);
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_drawing_context_is_valid (GdkDrawingContext *context);
-
GDK_AVAILABLE_IN_ALL
cairo_t * gdk_drawing_context_get_cairo_context (GdkDrawingContext *context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]