]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Drop dead code
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Jun 2019 11:09:15 +0000 (12:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Jun 2019 11:09:15 +0000 (12:09 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser.c

index 5a8c1b4d8a34f0c69e52eaff9d160344c4dc2236..62e94d29f5758f46b9c4b2afb9967bf596e9d6fd 100644 (file)
@@ -310,16 +310,9 @@ static char* pakfire_parser_expand_declaration(PakfireParser parser,
        if (!declaration || !declaration->value)
                return NULL;
 
-       // Get namespace of variable we are expanding
-       char* namespace = pakfire_strdup(declaration->name);
-       pakfire_parser_strip_namespace(namespace);
-
        // Expand the value
        char* buffer = pakfire_parser_expand(parser, declaration->value);
 
-       // Cleanup
-       pakfire_free(namespace);
-
        return buffer;
 }