drawingcontext: Remove unused APIs

This commit is contained in:
Benjamin Otte 2018-04-11 19:20:17 +02:00
parent 814b7d7bb7
commit 39d930c065
3 changed files with 0 additions and 48 deletions

View File

@ -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>

View File

@ -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;
}

View File

@ -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);