Drop unused variables to fix build

This is a merge conflict between #22740 and #20156.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-03-21 13:30:42 +01:00
parent 7ff9846956
commit e7949be790
2 changed files with 2 additions and 6 deletions
-3
View File
@@ -189,7 +189,6 @@ static int pattern_split(
int pattern_match(const char *pattern, const char *s, InstanceMetadata *ret) {
_cleanup_(instance_metadata_destroy) InstanceMetadata found = INSTANCE_METADATA_NULL;
_cleanup_(pattern_element_free_allp) PatternElement *elements = NULL;
PatternElement *e;
const char *p;
int r;
@@ -412,7 +411,6 @@ nope:
int pattern_match_many(char **patterns, const char *s, InstanceMetadata *ret) {
_cleanup_(instance_metadata_destroy) InstanceMetadata found = INSTANCE_METADATA_NULL;
char **p;
int r;
STRV_FOREACH(p, patterns) {
@@ -454,7 +452,6 @@ int pattern_format(
_cleanup_(pattern_element_free_allp) PatternElement *elements = NULL;
_cleanup_free_ char *j = NULL;
PatternElement *e;
int r;
assert(pattern);