Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove ASTNodeOrigin
  • Loading branch information
hvanhovell committed Dec 29, 2015
commit cb60ba045ff6663ed83c308b2423bdb87152a092
18 changes: 0 additions & 18 deletions sql/hive/src/main/java/org/apache/spark/sql/parser/ASTNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
public class ASTNode extends CommonTree implements Node, Serializable {
private static final long serialVersionUID = 1L;
private transient StringBuffer astStr;
private transient ASTNodeOrigin origin;
private transient int startIndx = -1;
private transient int endIndx = -1;
private transient ASTNode rootNode;
Expand All @@ -51,7 +50,6 @@ public ASTNode(Token t) {

public ASTNode(ASTNode node) {
super(node);
this.origin = node.origin;
}

@Override
Expand Down Expand Up @@ -88,22 +86,6 @@ public String getName() {
return (Integer.valueOf(super.getToken().getType())).toString();
}

/**
* @return information about the object from which this ASTNode originated, or
* null if this ASTNode was not expanded from an object reference
*/
public ASTNodeOrigin getOrigin() {
return origin;
}

/**
* Tag this ASTNode with information about the object from which this node
* originated.
*/
public void setOrigin(ASTNodeOrigin origin) {
this.origin = origin;
}

public String dump() {
StringBuilder sb = new StringBuilder("\n");
dump(sb, "");
Expand Down

This file was deleted.