Skip to content

Commit 04d3ec1

Browse files
Michael Andreas Dagitsesmalfet
authored andcommitted
remove dead code from generate_code program
Pull Request resolved: #74835 Nothing uses these values any more. Differential Revision: [D35187902](https://our.internmc.facebook.com/intern/diff/D35187902/) Approved by: https://github.com/albanD, https://github.com/malfet (cherry picked from commit 9663886)
1 parent f70b31f commit 04d3ec1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tools/setup_helpers/generate_code.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ def generate_code(ninja_global: Optional[str] = None,
5050
for d in (autograd_gen_dir, jit_gen_dir, python_install_dir):
5151
if not os.path.exists(d):
5252
os.makedirs(d)
53-
runfiles_dir = os.environ.get("RUNFILES_DIR", None)
54-
data_dir = os.path.join(runfiles_dir, 'pytorch') if runfiles_dir else ''
55-
tools_jit_templates = os.path.join(data_dir, 'tools', 'jit', 'templates')
5653
autograd_dir = os.fspath(pathlib.Path(__file__).parent.parent / "autograd")
5754

5855
if subset == "pybindings" or not subset:

0 commit comments

Comments
 (0)