Remove some dead code
authorDavid Schleef <ds@schleef.org>
Fri, 2 Jan 2004 07:19:41 +0000 (07:19 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 2 Jan 2004 07:19:41 +0000 (07:19 +0000)
Original commit message from CVS:
Remove some dead code

sys/v4l/gstv4lmjpegsrc.c
sys/v4l/gstv4lsrc.c

index d9a772a..08df6a2 100644 (file)
@@ -391,12 +391,6 @@ calc_bufsize (int hor_dec,
         return result;
 }
 
-#define gst_structure_get_int_range (structure, name, min, max) \
-  gst_props_entry_get_int_range(gst_props_get_entry((caps)->properties, \
-                                                    name), \
-                                min, max)
-
-
 static GstPadLinkReturn
 gst_v4lmjpegsrc_srcconnect (GstPad  *pad,
                             const GstCaps *caps)
index 24656e6..1805da2 100644 (file)
@@ -538,18 +538,6 @@ gst_v4lsrc_getcaps (GstPad  *pad)
   list = gst_caps_new_empty();
   for (i = 0; i < 8; i++) {
     GstCaps *one;
-#define gst_v4lsrc_palette_to_caps_range(palette, min_w, max_w, min_h, max_h) \
-  gst_v4lsrc_palette_to_caps(palette, \
-                             gst_props_entry_new("width", \
-                                                 G_TYPE_INT_RANGE(min_w, \
-                                                                     max_w)), \
-                             gst_props_entry_new("height", \
-                                                 G_TYPE_INT_RANGE(min_h, \
-                                                                     max_h)), \
-                             gst_props_entry_new("framerate", \
-                                                 G_TYPE_DOUBLE_RANGE(0., \
-                                                                 G_MAXFLOAT)) \
-                            )
 
     one = gst_v4lsrc_palette_to_caps(palette[i]);
     gst_caps_set_simple (one,