diff options
Diffstat (limited to 'pkg/api/api0/api.go')
-rw-r--r-- | pkg/api/api0/api.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go index af3505a..3f84238 100644 --- a/pkg/api/api0/api.go +++ b/pkg/api/api0/api.go @@ -212,13 +212,3 @@ func marshalJSONBytesAsArray(b []byte) json.RawMessage { e.WriteByte(']') return json.RawMessage(e.Bytes()) } - -func checkLimit(limit, def, cur int) bool { - if limit == -1 { - return true - } - if limit == 0 && cur < def { - return true - } - return cur < limit -} |