diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 93d1705..95820bb 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.in
@@ -661,7 +661,7 @@ sub ScanHeader {
 
 		if ($symbol =~ m/^(\S+)(Class|Iface|Interface)\b/) {
 		    #print "Found object: $1\n";
-		    $list .= "<TITLE>$1</TITLE>\n$1\n";
+		    $list .= "<TITLE>$1</TITLE>\n";
 		    push (@objects, $1);
 		}
 		#print "Store struct: $symbol\n";
@@ -693,17 +693,6 @@ sub ScanHeader {
     
     #print "DEBUG: Scanning $input_file done\n\n\n";
 
-    # Take out any object structs from the list of declarations as we don't
-    # want them included.
-    my ($object);
-    foreach $object (@objects) {
-	$list =~ s/^$object\n//m;
-	$list =~ s/^${object}Class\n//m;
-	$list =~ s/^${object}Iface\n//m;
-	$list =~ s/^${object}Interface\n//m;
-    }
-
-
     # Try to separate the standard macros and functions, placing them at the
     # end of the current section, in a subsection named 'Standard'.
     my ($class) = "";
