remove meaningless Writeable function

This commit is contained in:
Nia Weiss 2020-10-12 14:18:38 -04:00
parent 420b44a79a
commit fa481c91de
No known key found for this signature in database
GPG key ID: 895E83409BFDA1BB

View file

@ -791,19 +791,6 @@ func (c *Call) TranslateInfo(columnLabel, rowLabel string) (colKey, rowKey, fiel
}
}
// Writable returns true if call is mutable (e.g. can write new translation keys)
func (c *Call) Writable() bool {
switch c.Name {
case "Set", "SetRowAttrs", "SetColumnAttrs", "SetBit":
return true
case "Not":
// to support queries like Not(Row(f="garbage"))
return true
default:
return false
}
}
func (c *Call) ArgString(key string) string {
value, ok := c.Args[key]
if !ok {