From: Michael Schroeder Date: Fri, 5 Apr 2019 11:37:04 +0000 (+0200) Subject: Drop unused diskusagexml2solv.c X-Git-Tag: 0.7.5~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b5b1d4679049c3918905d142b85bb6b953b4cb8;p=thirdparty%2Flibsolv.git Drop unused diskusagexml2solv.c Whatever that was... --- diff --git a/tools/diskusagexml2solv.c b/tools/diskusagexml2solv.c deleted file mode 100644 index 850b02cd..00000000 --- a/tools/diskusagexml2solv.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2007, Novell Inc. - * - * This program is licensed under the BSD license, read LICENSE.BSD - * for further information - */ - -#include -#include -#include -#include -#include -#include -#include - -#include "pool.h" -#include "repo.h" -#include "repo_diskusagexml.h" -#include "common_write.h" - -static void -usage(int status) -{ - fprintf(stderr, "\nUsage:\n" - "diskusagexml2solv [-h]\n" - " reads a 'diskusage.xml' file from and writes a .solv file to \n" - " -h : print help & exit\n" - ); - exit(status); -} - -int -main(int argc, char **argv) -{ - int c, flags = 0; - - Pool *pool = pool_create(); - Repo *repo = repo_create(pool, ""); - - while ((c = getopt(argc, argv, "h")) >= 0) - { - switch(c) - { - case 'h': - usage(0); - break; - default: - usage(1); - break; - } - } - if (repo_add_diskusagexml(repo, stdin, flags)) - { - fprintf(stderr, "diskusagexml2solv: %s\n", pool_errstr(pool)); - exit(1); - } - tool_write(repo, stdout); - pool_free(pool); - exit(0); -}