@@ -1247,23 +1247,16 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
1247
1247
1248
1248
private function pathRemover ($ output , $ compiler_config ) {
1249
1249
1250
- // $core_pattern = "/" . str_replace("/", "\\/", $compiler_config["arduino_cores_dir"]) . "([.*\\S]*\\/)" . "/";
1251
- // $external_core_pattern = "//";
1252
- // if (isset($compiler_config["external_core_files"]) && $compiler_config["external_core_files"] != "")
1253
- // $external_core_pattern = "/" . str_replace("/", "\\/", $compiler_config["external_core_files"]) . "([.*\\S]*\\/)" . "/";
1254
-
1255
1250
// Remove any instance of "compiler.RANDOM/files/" folder name from the text
1256
1251
$ modified = str_replace ($ compiler_config ["compiler_dir " ] . "/files/ " , '' , $ output );
1257
1252
1258
1253
// Remove any remaining instance of "compiler.RANDOM/" folder name from the text.
1259
1254
$ modified = str_replace ($ compiler_config ["compiler_dir " ] . "/ " , '' , $ modified );
1260
1255
1261
1256
// Remove any instance of codebender arduino core files folder name from the text
1262
- // $modified = preg_replace($core_pattern, '', $modified);
1263
1257
$ modified = str_replace ($ compiler_config ["arduino_cores_dir " ] . "/v105/ " , '' , $ modified );
1264
1258
1265
1259
// Remove any instance of codebender external core file folder name from the text
1266
- // $modified = preg_replace($external_core_pattern, '', $modified);
1267
1260
if (isset ($ compiler_config ["external_core_files " ]) && $ compiler_config ["external_core_files " ] != "" )
1268
1261
$ modified = str_replace ($ compiler_config ["external_core_files " ], '' , $ modified );
1269
1262
0 commit comments