Skip to content

Commit f73f108

Browse files
patearloskarb
authored andcommitted
NH-3251: Removed a bunch of useless code.
(cherry picked from commit f1c7416)
1 parent 65ac881 commit f73f108

File tree

1 file changed

+0
-59
lines changed

1 file changed

+0
-59
lines changed

src/NHibernate/Hql/Ast/ANTLR/Tree/ASTTreeAdaptor.cs

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -36,68 +36,9 @@ public override IToken CreateToken(IToken fromToken)
3636
return new CommonToken(fromToken);
3737
}
3838

39-
public override object GetParent(object t)
40-
{
41-
return ((ITree) t).Parent;
42-
}
43-
44-
public override void SetParent(object t, object parent)
45-
{
46-
((ITree)t).Parent = (ITree)parent;
47-
}
48-
49-
public override int GetChildIndex(object t)
50-
{
51-
return ((ITree)t).ChildIndex;
52-
}
53-
54-
public override void SetChildIndex(object t, int index)
55-
{
56-
((ITree)t).ChildIndex = index;
57-
}
58-
59-
//public override int GetNodeType(object t) // Should perhaps be GetType(object) instead?
60-
//{
61-
// return ((ITree) t).Type;
62-
//}
63-
64-
public override void ReplaceChildren(object parent, int startChildIndex, int stopChildIndex, object t)
65-
{
66-
throw new System.NotImplementedException();
67-
}
68-
69-
public override void SetTokenBoundaries(object t, IToken startToken, IToken stopToken)
70-
{
71-
if (t != null)
72-
{
73-
int tokenIndex = 0;
74-
int num2 = 0;
75-
if (startToken != null)
76-
{
77-
tokenIndex = startToken.TokenIndex;
78-
}
79-
if (stopToken != null)
80-
{
81-
num2 = stopToken.TokenIndex;
82-
}
83-
((ITree)t).TokenStartIndex = tokenIndex;
84-
((ITree)t).TokenStopIndex = num2;
85-
}
86-
}
87-
8839
public override object ErrorNode(ITokenStream input, IToken start, IToken stop, RecognitionException e)
8940
{
9041
return new ASTErrorNode(input, start, stop, e);
9142
}
92-
93-
public override int GetTokenStartIndex(object t)
94-
{
95-
throw new System.NotImplementedException();
96-
}
97-
98-
public override int GetTokenStopIndex(object t)
99-
{
100-
throw new System.NotImplementedException();
101-
}
10243
}
10344
}

0 commit comments

Comments
 (0)