clutter: Don't generate unused keys_by_name table

Spotted by codeql

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3837>
This commit is contained in:
Bilal Elmoussaoui 2024-06-22 14:46:33 +02:00 committed by Bilal Elmoussaoui
parent 43dabfc8d1
commit cb4b31f858
2 changed files with 3 additions and 2296 deletions

File diff suppressed because it is too large Load Diff

View File

@ -76,25 +76,3 @@ for $key (@keys) {
print "\n};\n\n"; print "\n};\n\n";
@keys = sort { $a->[1] cmp $b->[1] } @keys; @keys = sort { $a->[1] cmp $b->[1] } @keys;
print <<EOT;
static const clutter_key clutter_keys_by_name[] = {
EOT
$i = 0;
for $key (@keys) {
$keyval = $key->[0];
$name = $key->[1];
$offset = $key->[3];
if ($i != 0) {
print ",\n";
}
print " { $keyval, $offset }";
$i++;
}
print <<EOT;
};
EOT