1.1 --- a/encoders.py Mon Nov 21 17:05:41 2016 +0100
1.2 +++ b/encoders.py Mon Nov 21 19:02:43 2016 +0100
1.3 @@ -187,10 +187,6 @@
1.4 "__test_common_instance", "__test_common_object", "__test_common_type",
1.5 )
1.6
1.7 -encoding_ops = (
1.8 - "__encode_callable",
1.9 - )
1.10 -
1.11 static_ops = (
1.12 "__load_static",
1.13 )
1.14 @@ -246,18 +242,11 @@
1.15 a[1] = encode_symbol("pos", arg)
1.16 a.insert(2, encode_symbol("code", arg))
1.17
1.18 - # Replace encoded operations.
1.19 -
1.20 - elif op in encoding_ops:
1.21 - origin = a[0]
1.22 - kind = a[1]
1.23 - op = "__load_function"
1.24 - a = [kind == "<class>" and encode_instantiator_pointer(origin) or encode_function_pointer(origin)]
1.25 -
1.26 # Obtain addresses of static objects.
1.27
1.28 elif op in static_ops:
1.29 a[0] = "&%s" % a[0]
1.30 + a[1] = "&%s" % a[1]
1.31
1.32 argstr = "(%s)" % ", ".join(a)
1.33