diff --git a/gst-plugin-threadshare/src/appsrc.rs b/gst-plugin-threadshare/src/appsrc.rs index 9782ed6b..96a327a9 100644 --- a/gst-plugin-threadshare/src/appsrc.rs +++ b/gst-plugin-threadshare/src/appsrc.rs @@ -532,10 +532,6 @@ impl ObjectSubclass for AppSrc { }); } - fn new() -> Self { - unreachable!() - } - fn new_with_class(klass: &subclass::simple::ClassStruct) -> Self { let templ = klass.get_pad_template("src").unwrap(); let src_pad = gst::Pad::new_from_template(&templ, "src"); diff --git a/gst-plugin-threadshare/src/proxy.rs b/gst-plugin-threadshare/src/proxy.rs index 500ee4e2..fbdb8c5f 100644 --- a/gst-plugin-threadshare/src/proxy.rs +++ b/gst-plugin-threadshare/src/proxy.rs @@ -661,10 +661,6 @@ impl ObjectSubclass for ProxySink { klass.install_properties(&PROPERTIES_SINK); } - fn new() -> Self { - unreachable!() - } - fn new_with_class(klass: &subclass::simple::ClassStruct) -> Self { let templ = klass.get_pad_template("sink").unwrap(); let sink_pad = gst::Pad::new_from_template(&templ, "sink"); diff --git a/gst-plugin-threadshare/src/queue.rs b/gst-plugin-threadshare/src/queue.rs index e31e45d3..595b85f0 100644 --- a/gst-plugin-threadshare/src/queue.rs +++ b/gst-plugin-threadshare/src/queue.rs @@ -793,10 +793,6 @@ impl ObjectSubclass for Queue { klass.install_properties(&PROPERTIES); } - fn new() -> Self { - unreachable!() - } - fn new_with_class(klass: &subclass::simple::ClassStruct) -> Self { let templ = klass.get_pad_template("sink").unwrap(); let sink_pad = gst::Pad::new_from_template(&templ, "sink"); diff --git a/gst-plugin-threadshare/src/tcpclientsrc.rs b/gst-plugin-threadshare/src/tcpclientsrc.rs index c0305e10..978699bf 100644 --- a/gst-plugin-threadshare/src/tcpclientsrc.rs +++ b/gst-plugin-threadshare/src/tcpclientsrc.rs @@ -592,10 +592,6 @@ impl ObjectSubclass for TcpClientSrc { klass.install_properties(&PROPERTIES); } - fn new() -> Self { - unreachable!() - } - fn new_with_class(klass: &subclass::simple::ClassStruct) -> Self { let templ = klass.get_pad_template("src").unwrap(); let src_pad = gst::Pad::new_from_template(&templ, "src"); diff --git a/gst-plugin-threadshare/src/udpsrc.rs b/gst-plugin-threadshare/src/udpsrc.rs index 6516ebec..2456ffc7 100644 --- a/gst-plugin-threadshare/src/udpsrc.rs +++ b/gst-plugin-threadshare/src/udpsrc.rs @@ -878,10 +878,6 @@ impl ObjectSubclass for UdpSrc { klass.install_properties(&PROPERTIES); } - fn new() -> Self { - unreachable!() - } - fn new_with_class(klass: &subclass::simple::ClassStruct) -> Self { let templ = klass.get_pad_template("src").unwrap(); let src_pad = gst::Pad::new_from_template(&templ, "src"); diff --git a/gst-plugin-togglerecord/src/togglerecord.rs b/gst-plugin-togglerecord/src/togglerecord.rs index b04b3418..304d4773 100644 --- a/gst-plugin-togglerecord/src/togglerecord.rs +++ b/gst-plugin-togglerecord/src/togglerecord.rs @@ -1143,10 +1143,6 @@ impl ObjectSubclass for ToggleRecord { glib_object_subclass!(); - fn new() -> Self { - unreachable!(); - } - fn new_with_class(klass: &subclass::simple::ClassStruct) -> Self { let templ = klass.get_pad_template("sink").unwrap(); let sinkpad = gst::Pad::new_from_template(&templ, "sink"); diff --git a/gst-plugin-tutorial/src/identity.rs b/gst-plugin-tutorial/src/identity.rs index 2b53adf7..db4163e4 100644 --- a/gst-plugin-tutorial/src/identity.rs +++ b/gst-plugin-tutorial/src/identity.rs @@ -162,12 +162,6 @@ impl ObjectSubclass for Identity { // This macro provides some boilerplate. glib_object_subclass!(); - // By default this would be called for creating a new instance but we - // want access to the class struct below so this function is unreachable - fn new() -> Self { - unreachable!(); - } - // Called when a new instance is to be created. We need to return an instance // of our struct here and also get the class struct passed in case it's needed fn new_with_class(klass: &subclass::simple::ClassStruct) -> Self {