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:
parent
43dabfc8d1
commit
cb4b31f858
File diff suppressed because it is too large
Load Diff
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user