Got rid of function that I don't need anymore

master
Aadhavan Srinivasan 2 months ago
parent 360bdc8e11
commit 20db62c596

@ -1,7 +1,5 @@
package main package main
import "slices"
type stateContents []int // Represents the contents of the current state - character classes can have multiple contents, which is why it is represented as a slice type stateContents []int // Represents the contents of the current state - character classes can have multiple contents, which is why it is represented as a slice
func newContents(data ...int) stateContents { func newContents(data ...int) stateContents {
@ -19,8 +17,3 @@ func rune2Contents(data []rune) stateContents { // Convert a rune slice into a s
} }
return toReturn return toReturn
} }
// Returns true if c contains the given value
func (c stateContents) contains(val int) bool {
return slices.Contains(c, val)
}

Loading…
Cancel
Save