Got rid of function that I don't need anymore
This commit is contained in:
@@ -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)
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user