docs: cleanup constructor example
authorStefan Kost <ensonic@users.sf.net>
Sun, 19 Sep 2010 18:37:19 +0000 (21:37 +0300)
committerStefan Kost <ensonic@users.sf.net>
Sun, 19 Sep 2010 18:37:19 +0000 (21:37 +0300)
Remove unused var and chain-up the sane way we do elsewhere.

docs/reference/gobject/tut_gobject.xml

index 4c5e707..fb0a9d8 100644 (file)
@@ -97,10 +97,7 @@ maman_bar_constructor (GType                  gtype,
 
   {
     /* Always chain up to the parent constructor */
-    MamanBarClass *klass;
-    GObjectClass *parent_class;  
-    parent_class = G_OBJECT_CLASS (maman_bar_parent_class);
-    obj = parent_class-&gt;constructor (gtype, n_properties, properties);
+    obj = G_OBJECT_CLASS (maman_bar_parent_class)-&gt;constructor (gtype, n_properties, properties);
   }
   
   /* update the object state depending on constructor properties */