Remove unused branch in _get_magic_method