Skip to content

Commit

Permalink
removed unnessecary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
klingbolt committed Nov 5, 2023
1 parent d15d337 commit 6676272
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions xml_converter/src/xml_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,14 @@ void read_taco_directory(string input_path, map<string, Category>* marker_catego

void write_taco_directory(string output_path, map<string, Category>* marker_categories, vector<Parseable*>* parsed_pois) {
// TODO: Exportion of XML Marker Packs File Structure #111
string xml_filepath;
if (!has_suffix(output_path, "/")) {
output_path += "/";
xml_filepath = output_path + "xml_file.xml";
}
else {
xml_filepath = output_path;
}

if (!filesystem::is_directory(output_path)) {
if (!filesystem::create_directory(output_path)) {
cout << "Error: " << output_path << "is not a valid directory path" << endl;
}
}
write_xml_file(xml_filepath, marker_categories, parsed_pois);
write_xml_file(output_path + "xml_file.xml", marker_categories, parsed_pois);
}

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 6676272

Please sign in to comment.