mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-16 20:11:02 +01:00
revert exists(), unused
This commit is contained in:
9
util.go
9
util.go
@@ -33,15 +33,6 @@ func contains(s []string, e string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func exists(m map[string]interface{}, item string) bool {
|
||||
// FIXME: try to use this for all cases
|
||||
if _, ok := m[item]; ok {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
func const2num(name string) float64 {
|
||||
switch name {
|
||||
case "Pi":
|
||||
|
||||
Reference in New Issue
Block a user