Przeglądaj źródła

Remove debug json file generation

Daniele Bartolini 12 lat temu
rodzic
commit
66d9576fb6
1 zmienionych plików z 0 dodań i 19 usunięć
  1. 0 19
      tools/cli/resource-compiler.cpp

+ 0 - 19
tools/cli/resource-compiler.cpp

@@ -150,13 +150,6 @@ int main(int argc, char** argv)
 	compilers["tga"] = &tga;
 	compilers["wav"] = &wav;
 
-	// Open debug output file
-	ofstream debug_file("/home/dani/Desktop/compiler.json");
-	if (debug_file.is_open())
-	{
-		debug_file << "{\n";
-	}
-
 	for (int32_t i = 0; i < argc - first_resource; i++)
 	{
 		const char* resource = argv[first_resource + i];
@@ -188,19 +181,7 @@ int main(int argc, char** argv)
 			cout << "No compilers found for type '" << resource_type << "'." << endl;
 			exit(EXIT_FAILURE);
 		}
-
-		// Debug stuff
-		debug_file << "    \"" << out_name << "\" : " << "\"" << argv[first_resource + i] << "\"";
-		if (argc - first_resource - i != 1)
-		{
-			debug_file << ",";
-		}
-
-		debug_file << "\n";
 	}
 
-	debug_file << "}\n";
-	debug_file.close();
-
 	return 0;
 }