Skip to content

Commit d49adc3

Browse files
Kimmo Linnavuod471061c
authored andcommitted
Clean up code
1 parent 5397743 commit d49adc3

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

tmc-langs-qmake/src/main/java/fi/helsinki/cs/tmc/langs/qmake/QTestResultParser.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public QTestResultParser() {
4646
public void loadTests(Path testResult) {
4747
this.tests = parseTestCases(testResult);
4848
}
49-
49+
5050
private List<TestResult> parseTestCases(Path testOutput) {
5151
Document doc;
5252
try {
@@ -80,8 +80,7 @@ private Document prepareDocument(Path testOutput)
8080
try {
8181
doc = documentBuilder.parse(is);
8282
} catch (SAXException ex) {
83-
log.info(SAX_PARSER_ERROR);
84-
log.info(ex.toString());
83+
log.info(SAX_PARSER_ERROR, ex);
8584
}
8685

8786
if (doc == null) {

tmc-langs-qmake/src/main/java/fi/helsinki/cs/tmc/langs/qmake/QmakePlugin.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ public final class QmakePlugin extends AbstractLanguagePlugin {
5757
= Pattern.compile("(^[^\"\\r\\n]*\\/\\*{1,2}.*?\\*\\/"
5858
+ "|(^[^\"\\r\\n]*\\/\\/[^\\r\\n]*))", Pattern.MULTILINE | Pattern.DOTALL);
5959

60-
private static final RunResult EMPTY_FAILURE
61-
= new RunResult(
62-
Status.COMPILE_FAILED,
63-
ImmutableList.<TestResult>of(),
64-
new ImmutableMap.Builder<String, byte[]>().build());
65-
6660
private static final Logger log = LoggerFactory.getLogger(QmakePlugin.class);
6761

6862
/**

tmc-langs-qmake/src/main/java/fi/helsinki/cs/tmc/langs/qmake/QmakeStudentFilePolicy.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
public final class QmakeStudentFilePolicy extends ConfigurableStudentFilePolicy {
99

10-
// TODO: figure this out
1110
private static final Path SOURCE_FOLDER_PATH = Paths.get("src");
1211

1312
public QmakeStudentFilePolicy(Path configFileParent) {

0 commit comments

Comments
 (0)