Skip to content

Commit

Permalink
chore: BED-5260 - remove unused functions (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
zinic authored Jan 7, 2025
1 parent 19287fe commit 5c5c503
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/go/cypher/models/pgsql/translate/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ func (s *Translator) pushState(state State) {
s.state = append(s.state, state)
}

func (s *Translator) popState() {
s.state = s.state[:len(s.state)-1]
}

func (s *Translator) exitState(expectedState State) {
if currentState := s.currentState(); currentState != expectedState {
s.SetErrorf("expected state %s but found %s", expectedState, currentState)
Expand All @@ -120,16 +116,6 @@ func (s *Translator) exitState(expectedState State) {
}
}

func (s *Translator) inState(expectedState State) bool {
for _, state := range s.state {
if state == expectedState {
return true
}
}

return false
}

func (s *Translator) Enter(expression cypher.SyntaxNode) {
switch typedExpression := expression.(type) {
case *cypher.RegularQuery, *cypher.SingleQuery, *cypher.PatternElement, *cypher.Return,
Expand Down

0 comments on commit 5c5c503

Please sign in to comment.