From db484a6c604d17a3df5c9ce10c12d56347e2fc40 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Wed, 22 Jun 2022 16:26:37 -0700 Subject: Remove unneeded code --- hotline/client_conn.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hotline/client_conn.go b/hotline/client_conn.go index 997b9c9..5780f6d 100644 --- a/hotline/client_conn.go +++ b/hotline/client_conn.go @@ -156,10 +156,6 @@ func (cc *ClientConn) uint16ID() uint16 { // Authorize checks if the user account has the specified permission func (cc *ClientConn) Authorize(access int) bool { - if access == 0 { - return true - } - i := big.NewInt(int64(binary.BigEndian.Uint64(*cc.Account.Access))) return i.Bit(63-access) == 1 -- cgit