Remove special objects, they are no longer needed

This commit is contained in:
Dave Halter
2019-05-19 14:28:39 +02:00
parent 1b668966ce
commit 4b2518ca9a
3 changed files with 0 additions and 20 deletions

View File

@@ -46,13 +46,6 @@ def create_simple_object(evaluator, obj):
return CompiledValue(instance, compiled_obj) return CompiledValue(instance, compiled_obj)
def get_special_object(evaluator, identifier):
return create_from_access_path(
evaluator,
evaluator.compiled_subprocess.get_special_object(identifier)
)
def get_string_context_set(evaluator): def get_string_context_set(evaluator):
return execute_evaluated(builtin_from_name(evaluator, u'str')) return execute_evaluated(builtin_from_name(evaluator, u'str'))

View File

@@ -438,12 +438,3 @@ def _is_class_instance(obj):
return False return False
else: else:
return cls != type and not issubclass(cls, NOT_CLASS_TYPES) return cls != type and not issubclass(cls, NOT_CLASS_TYPES)
class _SPECIAL_OBJECTS(object):
BOUND_METHOD_CLASS = type(DirectObjectAccess(None, None).py__bool__)
def get_special_object(evaluator, identifier):
obj = getattr(_SPECIAL_OBJECTS, identifier)
return create_access_path(evaluator, obj)

View File

@@ -21,10 +21,6 @@ def get_compiled_method_return(evaluator, id, attribute, *args, **kwargs):
return getattr(handle.access, attribute)(*args, **kwargs) return getattr(handle.access, attribute)(*args, **kwargs)
def get_special_object(evaluator, identifier):
return access.get_special_object(evaluator, identifier)
def create_simple_object(evaluator, obj): def create_simple_object(evaluator, obj):
return access.create_access_path(evaluator, obj) return access.create_access_path(evaluator, obj)