diff --git a/pom.xml b/pom.xml
index 543631b0789e58b6f2a90a6c0deba68f76ea167f..8ba285614fce878de725c1a174247e1ce192a2fe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
de.monticore.lang.monticar
embedded-montiarc-math-middleware-generator
- 0.0.4-SNAPSHOT
+ 0.0.5-SNAPSHOT
@@ -17,8 +17,7 @@
1.7.7
- 0.0.15-SNAPSHOT
- 0.0.17-SNAPSHOT
+ 0.0.18-SNAPSHOT
0.0.4-SNAPSHOT
0.0.3-SNAPSHOT
@@ -90,12 +89,6 @@
${se-commons.version}
-
- de.monticore.lang.monticar
- embedded-montiarc-math
- ${Embedded-MontiArc-Math.version}
-
-
org.freemarker
freemarker
diff --git a/src/main/java/de/monticore/lang/monticar/generator/middleware/impls/CPPGenImpl.java b/src/main/java/de/monticore/lang/monticar/generator/middleware/impls/CPPGenImpl.java
index a84e8996d1b5109708430aa124f4a91cca8cee76..921f759fde510b788b2701ccf074e45e8778f0b0 100644
--- a/src/main/java/de/monticore/lang/monticar/generator/middleware/impls/CPPGenImpl.java
+++ b/src/main/java/de/monticore/lang/monticar/generator/middleware/impls/CPPGenImpl.java
@@ -9,15 +9,9 @@ import de.monticore.lang.tagging._symboltable.TaggingResolver;
import java.io.File;
import java.io.IOException;
-import java.nio.charset.Charset;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
-//TODO: make GeneratorCpp implement GeneratorImpl directly!
public class CPPGenImpl implements GeneratorImpl {
private String generationTargetPath;
private GeneratorCPP generatorCPP;
@@ -39,8 +33,6 @@ public class CPPGenImpl implements GeneratorImpl {
files.add(generatorCPP.generateFile(generateCMake(componentInstanceSymbol)));
files.addAll(generatorCPP.generateFiles(componentInstanceSymbol, taggingResolver));
- fixKnownErrors(files);
-
return files;
}
@@ -56,21 +48,4 @@ public class CPPGenImpl implements GeneratorImpl {
cmake.setFileContent(TemplateHelper.getCmakeCppTemplate().replace("${compName}", name));
return cmake;
}
-
- private void fixKnownErrors(List files) throws IOException {
- for (File f : files) {
- Path path = Paths.get(f.getAbsolutePath());
- Charset charset = StandardCharsets.UTF_8;
- String content = new String(Files.readAllBytes(path), charset);
-
- content = content
- //Matrix access problems
- .replace("int curIndex = indexLookup(i);","int curIndex = indexLookup(i-1);")
- .replace("-1-1", "-1") //not present in emam2cpp master
- .replace("] ;","];")
- ;
-
- Files.write(path, content.getBytes(charset));
- }
- }
}