From 8b13b246960210a33b4c7f99ac41aaadf71dfd42 Mon Sep 17 00:00:00 2001 From: Linus Wagner Date: Fri, 29 Dec 2023 20:47:30 +0100 Subject: [PATCH] Remove debug prints --- src/lang/cpp/internal/Parser.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/lang/cpp/internal/Parser.java b/src/lang/cpp/internal/Parser.java index d200160f..2feeb442 100644 --- a/src/lang/cpp/internal/Parser.java +++ b/src/lang/cpp/internal/Parser.java @@ -294,8 +294,6 @@ public IList parseFiles(IList files, IString charset, IBool inferCharset, IList CDTParser parser = new CDTParser(vf, stdOut, stdErr, stdLib, includeDirs, standardMacros, additionalMacros, includeStdLib.getValue()); monitor.jobStart("ClaiR parseFiles"); - Instant begin = Instant.now(); - out("Beginning at " + begin.toString()); IListWriter asts = vf.listWriter(); for (IValue v : files) { if (monitor.jobIsCanceled("ClaiR parseFiles")) { @@ -316,9 +314,6 @@ public IList parseFiles(IList files, IString charset, IBool inferCharset, IList } } - Instant done = Instant.now(); - out("Parsing and marshalling " + files.size() + " files took " - + (Duration.between(begin, done).toMillis() * 1.0d) / 1000 + "seconds"); reset(); monitor.jobEnd("ClaiR parseFiles", true); @@ -358,22 +353,14 @@ public IValue parseCpp(ISourceLocation file, IString charset, IBool inferCharset this.includeStdLib = includeStdLib.getValue() || stdLib.isEmpty(); this.stdLib = stdLib; - Instant begin = Instant.now(); - out("Beginning at " + begin.toString()); CDTParser parser = new CDTParser(vf, stdOut, stdErr, stdLib, includeDirs, standardMacros, additionalMacros, includeStdLib.getValue()); IASTTranslationUnit tu = parser.parseFileAsCpp(file, charset, inferCharset); - Instant between = Instant.now(); - out("CDT took " + (Duration.between(begin, between).toMillis() * 1.0d) / 1000 + "seconds"); try { IValue result = convertCdtToRascal(tu, false); ISourceLocation tuDecl = URIUtil.correctLocation("cpp+translationUnit", "", file.getPath()); result = ((IConstructor) result).asWithKeywordParameters().setParameter("decl", tuDecl); - Instant done = Instant.now(); - out("Marshalling took " + (Duration.between(between, done).toMillis() * 1.0d) / 1000 - + "seconds"); - if (result == null) { throw RuntimeExceptionFactory.parseError(file, null, null); }