From 36527676ad66da01ce785a8891a6cc60217edf43 Mon Sep 17 00:00:00 2001 From: Adhika Setya Pramudita Date: Thu, 23 Nov 2017 19:12:43 +0700 Subject: [PATCH] types.py: Remove duplicated method Fix https://github.com/ethereum/viper/issues/488 --- viper/types.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/viper/types.py b/viper/types.py index 7f10012070..b384f930b9 100644 --- a/viper/types.py +++ b/viper/types.py @@ -4,6 +4,7 @@ from .exceptions import InvalidTypeException from .utils import ( base_types, + ceil32, is_varname_valid, valid_units, ) @@ -311,11 +312,6 @@ def parse_type(item, location): raise InvalidTypeException("Invalid type: %r" % ast.dump(item), item) -# Rounds up to nearest 32, eg. 95 -> 96, 96 -> 96, 97 -> 128 -def ceil32(x): - return x + 31 - (x - 1) % 32 - - # Gets the number of memory or storage keys needed to represent a given type def get_size_of_type(typ): if isinstance(typ, BaseType):