From fa481c91de56d6feeba8a36e5f8d8b2f96e66021 Mon Sep 17 00:00:00 2001 From: Nia Weiss Date: Mon, 12 Oct 2020 14:18:38 -0400 Subject: [PATCH] remove meaningless Writeable function --- pql/ast.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pql/ast.go b/pql/ast.go index d3858b951..e93a2aaf5 100644 --- a/pql/ast.go +++ b/pql/ast.go @@ -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 {