[ClavaWeaver] Removes CxxWeaver.fromNode()
@@ -47,7 +47,6 @@ import pt.up.fe.specs.clava.context.ClavaFactory;
import pt.up.fe.specs.clava.language.Standard;
import pt.up.fe.specs.clava.parsing.snippet.SnippetParser;
import pt.up.fe.specs.clava.utils.SourceType;
-import pt.up.fe.specs.clava.weaver.abstracts.ACxxWeaverJoinPoint;
import pt.up.fe.specs.clava.weaver.abstracts.weaver.ACxxWeaver;
import pt.up.fe.specs.clava.weaver.gears.InsideApplyGear;
import pt.up.fe.specs.clava.weaver.gears.ModifiedFilesGear;
@@ -2008,15 +2007,6 @@ public class CxxWeaver extends ACxxWeaver {
return context.getStackSize();
}
- @Override
- public ACxxWeaverJoinPoint fromNode(Object node) {
- if (!(node instanceof ClavaNode)) {
- throw new RuntimeException("Expected a ClavaNode, but got a " + node.getClass());
- }
-
- return CxxJoinpoints.create((ClavaNode) node);
- }
-
@Override
public AstMethods<?> getAstMethods() {
return new TreeNodeAstMethods<>(node -> CxxJoinpoints.create((ClavaNode) node));
