libs: display: remove unused code

https://bugzilla.gnome.org/show_bug.cgi?id=796470
This commit is contained in:
Hyunjun Ko 2018-05-22 21:05:54 +09:00 committed by Víctor Manuel Jáquez Leal
parent 28952f534b
commit 3056f06e02
2 changed files with 4 additions and 54 deletions

View file

@ -976,7 +976,7 @@ _set_property (GstVaapiDisplay * display, const GstVaapiProperty * prop,
}
static void
_gst_vaapi_display_set_property (GObject * object, guint property_id,
gst_vaapi_display_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
GstVaapiDisplay *display = GST_VAAPI_DISPLAY (object);
@ -1036,7 +1036,7 @@ _get_property (GstVaapiDisplay * display, const GstVaapiProperty * prop,
}
static void
_gst_vaapi_display_get_property (GObject * object, guint property_id,
gst_vaapi_display_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
GstVaapiDisplay *display = GST_VAAPI_DISPLAY (object);
@ -1072,8 +1072,8 @@ gst_vaapi_display_class_init (GstVaapiDisplayClass * klass)
GObjectClass *const object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gst_vaapi_display_finalize;
object_class->set_property = _gst_vaapi_display_set_property;
object_class->get_property = _gst_vaapi_display_get_property;
object_class->set_property = gst_vaapi_display_set_property;
object_class->get_property = gst_vaapi_display_get_property;
klass->lock = gst_vaapi_display_lock_default;
klass->unlock = gst_vaapi_display_unlock_default;
@ -1722,48 +1722,6 @@ gst_vaapi_display_has_property (GstVaapiDisplay * display, const gchar * name)
name) != NULL;
}
gboolean
gst_vaapi_display_get_property (GstVaapiDisplay * display, const gchar * name,
GValue * out_value)
{
const GstVaapiProperty *prop;
g_return_val_if_fail (display != NULL, FALSE);
g_return_val_if_fail (name != NULL, FALSE);
g_return_val_if_fail (out_value != NULL, FALSE);
if (!ensure_properties (display))
return FALSE;
prop =
find_property (GST_VAAPI_DISPLAY_GET_PRIVATE (display)->properties, name);
if (!prop)
return FALSE;
return _get_property (display, prop, out_value);
}
gboolean
gst_vaapi_display_set_property (GstVaapiDisplay * display, const gchar * name,
const GValue * value)
{
const GstVaapiProperty *prop;
g_return_val_if_fail (display != NULL, FALSE);
g_return_val_if_fail (name != NULL, FALSE);
g_return_val_if_fail (value != NULL, FALSE);
if (!ensure_properties (display))
return FALSE;
prop =
find_property (GST_VAAPI_DISPLAY_GET_PRIVATE (display)->properties, name);
if (!prop)
return FALSE;
return _set_property (display, prop, value);
}
static gboolean
get_attribute (GstVaapiDisplay * display, VADisplayAttribType type,
gint * value)

View file

@ -233,14 +233,6 @@ gst_vaapi_display_has_subpicture_format (GstVaapiDisplay * display,
gboolean
gst_vaapi_display_has_property (GstVaapiDisplay * display, const gchar * name);
gboolean
gst_vaapi_display_get_property (GstVaapiDisplay * display, const gchar * name,
GValue * out_value);
gboolean
gst_vaapi_display_set_property (GstVaapiDisplay * display, const gchar * name,
const GValue * value);
gboolean
gst_vaapi_display_get_render_mode (GstVaapiDisplay * display,
GstVaapiRenderMode * pmode);