From 671b4d25cd1c5a25bd1086d72797388104dfdbcf Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Fri, 24 Apr 2015 17:01:10 +0100 Subject: [PATCH] remove unused enum items PROP_LAST This were probably added to the enums due to cargo cult programming and are unused. Removing them. --- gst/alpha/gstalpha.c | 3 +-- gst/audiofx/audiokaraoke.c | 3 +-- gst/deinterlace/gstdeinterlace.c | 3 +-- gst/multifile/gstmultifilesink.c | 3 +-- gst/rtp/gstrtpg726depay.c | 3 +-- gst/rtp/gstrtpg726pay.c | 3 +-- gst/rtp/gstrtpgstpay.c | 3 +-- gst/rtp/gstrtph264pay.c | 3 +-- gst/rtp/gstrtpjpegpay.c | 3 +-- gst/rtpmanager/gstrtpbin.c | 3 +-- gst/rtpmanager/gstrtpjitterbuffer.c | 3 +-- gst/rtpmanager/gstrtprtxqueue.c | 3 +-- gst/rtpmanager/gstrtprtxreceive.c | 3 +-- gst/rtpmanager/gstrtprtxsend.c | 3 +-- gst/rtpmanager/gstrtpsession.c | 3 +-- gst/rtpmanager/rtpsession.c | 3 +-- gst/rtpmanager/rtpsource.c | 3 +-- gst/rtsp/gstrtspsrc.c | 3 +-- gst/smpte/gstsmpte.c | 3 +-- gst/smpte/gstsmptealpha.c | 3 +-- gst/udp/gstmultiudpsink.c | 3 +-- gst/udp/gstudpsrc.c | 4 +--- 22 files changed, 22 insertions(+), 45 deletions(-) diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c index 9566f30..736f377 100644 --- a/gst/alpha/gstalpha.c +++ b/gst/alpha/gstalpha.c @@ -120,8 +120,7 @@ enum PROP_NOISE_LEVEL, PROP_BLACK_SENSITIVITY, PROP_WHITE_SENSITIVITY, - PROP_PREFER_PASSTHROUGH, - PROP_LAST + PROP_PREFER_PASSTHROUGH }; static GstStaticPadTemplate gst_alpha_src_template = diff --git a/gst/audiofx/audiokaraoke.c b/gst/audiofx/audiokaraoke.c index 9d5d575..76697ca 100644 --- a/gst/audiofx/audiokaraoke.c +++ b/gst/audiofx/audiokaraoke.c @@ -66,8 +66,7 @@ enum PROP_LEVEL, PROP_MONO_LEVEL, PROP_FILTER_BAND, - PROP_FILTER_WIDTH, - PROP_LAST + PROP_FILTER_WIDTH }; #define ALLOWED_CAPS \ diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 9a89f5c..f0e0f31 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -75,8 +75,7 @@ enum PROP_FIELD_LAYOUT, PROP_LOCKING, PROP_IGNORE_OBSCURE, - PROP_DROP_ORPHANS, - PROP_LAST + PROP_DROP_ORPHANS }; #define GST_DEINTERLACE_BUFFER_STATE_P (1<<0) diff --git a/gst/multifile/gstmultifilesink.c b/gst/multifile/gstmultifilesink.c index b433acc..c035f55 100644 --- a/gst/multifile/gstmultifilesink.c +++ b/gst/multifile/gstmultifilesink.c @@ -144,8 +144,7 @@ enum PROP_POST_MESSAGES, PROP_NEXT_FILE, PROP_MAX_FILES, - PROP_MAX_FILE_SIZE, - PROP_LAST + PROP_MAX_FILE_SIZE }; static void gst_multi_file_sink_finalize (GObject * object); diff --git a/gst/rtp/gstrtpg726depay.c b/gst/rtp/gstrtpg726depay.c index 45d99dc..0b4a041 100644 --- a/gst/rtp/gstrtpg726depay.c +++ b/gst/rtp/gstrtpg726depay.c @@ -50,8 +50,7 @@ enum enum { PROP_0, - PROP_FORCE_AAL2, - PROP_LAST + PROP_FORCE_AAL2 }; static GstStaticPadTemplate gst_rtp_g726_depay_sink_template = diff --git a/gst/rtp/gstrtpg726pay.c b/gst/rtp/gstrtpg726pay.c index a1c8f5d..da9fe25 100644 --- a/gst/rtp/gstrtpg726pay.c +++ b/gst/rtp/gstrtpg726pay.c @@ -38,8 +38,7 @@ GST_DEBUG_CATEGORY_STATIC (rtpg726pay_debug); enum { PROP_0, - PROP_FORCE_AAL2, - PROP_LAST + PROP_FORCE_AAL2 }; static GstStaticPadTemplate gst_rtp_g726_pay_sink_template = diff --git a/gst/rtp/gstrtpgstpay.c b/gst/rtp/gstrtpgstpay.c index 08794d1..6167008 100644 --- a/gst/rtp/gstrtpgstpay.c +++ b/gst/rtp/gstrtpgstpay.c @@ -76,8 +76,7 @@ GST_STATIC_PAD_TEMPLATE ("src", enum { PROP_0, - PROP_CONFIG_INTERVAL, - PROP_LAST + PROP_CONFIG_INTERVAL }; #define DEFAULT_CONFIG_INTERVAL 0 diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index ba5e4b3..665814a 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -72,8 +72,7 @@ enum { PROP_0, PROP_SPROP_PARAMETER_SETS, - PROP_CONFIG_INTERVAL, - PROP_LAST + PROP_CONFIG_INTERVAL }; #define IS_ACCESS_UNIT(x) (((x) > 0x00) && ((x) < 0x06)) diff --git a/gst/rtp/gstrtpjpegpay.c b/gst/rtp/gstrtpjpegpay.c index 8c3a6d4..bf4ed55 100644 --- a/gst/rtp/gstrtpjpegpay.c +++ b/gst/rtp/gstrtpjpegpay.c @@ -114,8 +114,7 @@ enum { PROP_0, PROP_JPEG_QUALITY, - PROP_JPEG_TYPE, - PROP_LAST + PROP_JPEG_TYPE }; enum diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index c0d15e3..f0b8b4e 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -304,8 +304,7 @@ enum PROP_BUFFER_MODE, PROP_USE_PIPELINE_CLOCK, PROP_DO_SYNC_EVENT, - PROP_DO_RETRANSMISSION, - PROP_LAST + PROP_DO_RETRANSMISSION }; #define GST_RTP_BIN_RTCP_SYNC_TYPE (gst_rtp_bin_rtcp_sync_get_type()) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index ded09c1..dd458de 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -158,8 +158,7 @@ enum PROP_RTX_MIN_RETRY_TIMEOUT, PROP_RTX_RETRY_PERIOD, PROP_RTX_MAX_RETRIES, - PROP_STATS, - PROP_LAST + PROP_STATS }; #define JBUF_LOCK(priv) (g_mutex_lock (&(priv)->jbuf_lock)) diff --git a/gst/rtpmanager/gstrtprtxqueue.c b/gst/rtpmanager/gstrtprtxqueue.c index c5b88dd..8e98543 100644 --- a/gst/rtpmanager/gstrtprtxqueue.c +++ b/gst/rtpmanager/gstrtprtxqueue.c @@ -44,8 +44,7 @@ enum { PROP_0, PROP_MAX_SIZE_TIME, - PROP_MAX_SIZE_PACKETS, - PROP_LAST + PROP_MAX_SIZE_PACKETS }; static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", diff --git a/gst/rtpmanager/gstrtprtxreceive.c b/gst/rtpmanager/gstrtprtxreceive.c index 898279b..71b8023 100644 --- a/gst/rtpmanager/gstrtprtxreceive.c +++ b/gst/rtpmanager/gstrtprtxreceive.c @@ -133,8 +133,7 @@ enum PROP_PAYLOAD_TYPE_MAP, PROP_NUM_RTX_REQUESTS, PROP_NUM_RTX_PACKETS, - PROP_NUM_RTX_ASSOC_PACKETS, - PROP_LAST + PROP_NUM_RTX_ASSOC_PACKETS }; static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", diff --git a/gst/rtpmanager/gstrtprtxsend.c b/gst/rtpmanager/gstrtprtxsend.c index 307fdd9..d9cc69f 100644 --- a/gst/rtpmanager/gstrtprtxsend.c +++ b/gst/rtpmanager/gstrtprtxsend.c @@ -61,8 +61,7 @@ enum PROP_MAX_SIZE_TIME, PROP_MAX_SIZE_PACKETS, PROP_NUM_RTX_REQUESTS, - PROP_NUM_RTX_PACKETS, - PROP_LAST + PROP_NUM_RTX_PACKETS }; static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 191fb7d..384f3af 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -216,8 +216,7 @@ enum PROP_USE_PIPELINE_CLOCK, PROP_RTCP_MIN_INTERVAL, PROP_PROBATION, - PROP_STATS, - PROP_LAST + PROP_STATS }; #define GST_RTP_SESSION_GET_PRIVATE(obj) \ diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index a711c88..e3fe7be 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -88,8 +88,7 @@ enum PROP_RTCP_FEEDBACK_RETENTION_WINDOW, PROP_RTCP_IMMEDIATE_FEEDBACK_THRESHOLD, PROP_PROBATION, - PROP_STATS, - PROP_LAST + PROP_STATS }; /* update average packet size */ diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index 99383ea..d97adc4 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -50,8 +50,7 @@ enum PROP_IS_SENDER, PROP_SDES, PROP_STATS, - PROP_PROBATION, - PROP_LAST + PROP_PROBATION }; /* GObject vmethods */ diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 0f42126..ccd0103 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -232,8 +232,7 @@ enum PROP_SDES, PROP_TLS_VALIDATION_FLAGS, PROP_TLS_DATABASE, - PROP_DO_RETRANSMISSION, - PROP_LAST + PROP_DO_RETRANSMISSION }; #define GST_TYPE_RTSP_NAT_METHOD (gst_rtsp_nat_method_get_type()) diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index a423b80..722f146 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -94,8 +94,7 @@ enum PROP_BORDER, PROP_DEPTH, PROP_DURATION, - PROP_INVERT, - PROP_LAST, + PROP_INVERT }; /* FIXME: should use video meta etc. */ diff --git a/gst/smpte/gstsmptealpha.c b/gst/smpte/gstsmptealpha.c index ba934ac..38e1d6c 100644 --- a/gst/smpte/gstsmptealpha.c +++ b/gst/smpte/gstsmptealpha.c @@ -94,8 +94,7 @@ enum PROP_BORDER, PROP_DEPTH, PROP_POSITION, - PROP_INVERT, - PROP_LAST, + PROP_INVERT }; #define AYUV_SIZE(w,h) ((w) * (h) * 4) diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index c81dc62..2f1a8ec 100644 --- a/gst/udp/gstmultiudpsink.c +++ b/gst/udp/gstmultiudpsink.c @@ -112,8 +112,7 @@ enum PROP_SEND_DUPLICATES, PROP_BUFFER_SIZE, PROP_BIND_ADDRESS, - PROP_BIND_PORT, - PROP_LAST + PROP_BIND_PORT }; static void gst_multiudpsink_finalize (GObject * object); diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 81cb1f1..6e3126f 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -173,9 +173,7 @@ enum PROP_USED_SOCKET, PROP_AUTO_MULTICAST, PROP_REUSE, - PROP_ADDRESS, - - PROP_LAST + PROP_ADDRESS }; static void gst_udpsrc_uri_handler_init (gpointer g_iface, gpointer iface_data); -- 2.7.4