Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit c87c43e

Browse files
author
Juanjo Alvarez
committed
Remove two spurious serializeCommonData calls
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent d0ead66 commit c87c43e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

native/src/main/java/tech/sourced/babelfish/JsonASTVisitor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,6 @@ public int visit(IASTDeclSpecifier node)
11741174
@Override
11751175
public int visit(IASTInitializer node) {
11761176
return visitWrapper((IASTNode)node, () -> {
1177-
serializeCommonData(node);
11781177
if (node instanceof IASTInitializerList) {
11791178
IASTInitializerList impl = (IASTInitializerList) node;
11801179
json.writeNumberField("Size", impl.getSize());
@@ -1216,7 +1215,6 @@ public int visit(IASTStatement node) {
12161215
@Override
12171216
public int visit(IASTToken node) {
12181217
return visitWrapper((IASTNode)node, () -> {
1219-
serializeCommonData(node);
12201218
json.writeStringField("Image", String.valueOf(node.getTokenCharImage()));
12211219
// FIXME: this returns and int which meaning is undocumented... try to infer them?
12221220
json.writeNumberField("IntTokenType", node.getTokenType());

0 commit comments

Comments
 (0)