Skip to content

Commit

Permalink
[lang] Remove useless insertion to global_vars
Browse files Browse the repository at this point in the history
ghstack-source-id: fb68d89e74c5de64f6dc0100ac5ecb96158e0bda
Pull Request resolved: #8210
  • Loading branch information
lin-hitonami authored and Taichi Gardener committed Jun 25, 2023
1 parent 2db5254 commit b8859d8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions python/taichi/lang/kernel_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,6 @@ def _get_tree_and_ctx(
func_body.decorator_list = []

global_vars = _get_global_vars(self.func)
for i, arg in enumerate(func_body.args.args):
anno = arg.annotation
if isinstance(anno, ast.Name):
global_vars[anno.id] = self.arguments[i].annotation

if isinstance(func_body.returns, ast.Name):
global_vars[func_body.returns.id] = self.return_type

if is_kernel or is_real_function:
# inject template parameters into globals
Expand Down

0 comments on commit b8859d8

Please sign in to comment.