Skip to content

Commit

Permalink
tools: remove support for obsolete --xml/--fsys-root/--synthetic options
Browse files Browse the repository at this point in the history
Superseded by -i/--if before 2.0 and not documented anymore.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jan 24, 2023
1 parent d52aa4d commit 93a4a65
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions utils/hwloc/misc.h
@@ -1,6 +1,6 @@
/*
* Copyright © 2009 CNRS
* Copyright © 2009-2022 Inria. All rights reserved.
* Copyright © 2009-2023 Inria. All rights reserved.
* Copyright © 2009-2012 Université Bordeaux
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
Expand Down Expand Up @@ -142,36 +142,6 @@ hwloc_utils_lookup_input_option(char *argv[], int argc, int *consumed_opts,
return 1;
}

/* backward compat with 1.0 */
else if (!strcmp (argv[0], "--synthetic")) {
if (argc <= 1) {
usage (callname, stderr);
exit(EXIT_FAILURE);
}
*inputp = argv[1];
*input_formatp = HWLOC_UTILS_INPUT_SYNTHETIC;
*consumed_opts = 1;
return 1;
} else if (!strcmp (argv[0], "--xml")) {
if (argc <= 1) {
usage (callname, stderr);
exit(EXIT_FAILURE);
}
*inputp = argv[1];
*input_formatp = HWLOC_UTILS_INPUT_XML;
*consumed_opts = 1;
return 1;
} else if (!strcmp (argv[0], "--fsys-root")) {
if (argc <= 1) {
usage (callname, stderr);
exit(EXIT_FAILURE);
}
*inputp = argv[1];
*input_formatp = HWLOC_UTILS_INPUT_FSROOT;
*consumed_opts = 1;
return 1;
}

return 0;
}

Expand Down

0 comments on commit 93a4a65

Please sign in to comment.