From: David Sarrut Date: Fri, 4 Nov 2011 09:25:41 +0000 (+0100) Subject: Remove old stuff X-Git-Tag: v1.3.0~174^2~7 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9f95f4156c394d9181f5411a0db8ffbaef4bff44;p=clitk.git Remove old stuff --- diff --git a/tools/clitkRelativePositionAnalyzer.cxx b/tools/clitkRelativePositionAnalyzer.cxx index 1e9541e..bb0986d 100644 --- a/tools/clitkRelativePositionAnalyzer.cxx +++ b/tools/clitkRelativePositionAnalyzer.cxx @@ -30,32 +30,8 @@ int main(int argc, char * argv[]) { // Filter typedef clitk::RelativePositionAnalyzerGenericFilter FilterType; FilterType::Pointer filter = FilterType::New(); - - // Set filename from the AFDB if needed -#define SetOptionFromAFDBMacro(ARGS, OPTIONNAME, OPTION) \ - if (ARGS.OPTIONNAME##_given) { \ - if (ARGS.OPTION##_given) { \ - std::cerr << "Warning --"#OPTION" is ignored" << std::endl; \ - } \ - std::string f = afdb->GetTagValue(ARGS.OPTIONNAME##_arg); \ - f = std::string(args_info.afdb_path_arg)+"/"+f; \ - filter->AddInputFilename(f); \ - } \ - else if (!ARGS.OPTION##_given) { \ - std::cerr << "Error on the command line please provide --"#OPTION" or --"#OPTIONNAME"." << std::endl; \ - return EXIT_FAILURE; \ - } - - // Set options filter->SetArgsInfo(args_info); - NewAFDB(afdb, args_info.afdb_arg); - // The order is important. If --supportName and --support are - // given, the first is set before, so the second ignored - SetOptionFromAFDBMacro(args_info, supportName, support); - SetOptionFromAFDBMacro(args_info, objectName, object); - SetOptionFromAFDBMacro(args_info, targetName, target); - // Go ! try { filter->Update();