Skip to content

Commit 1c1f13e

Browse files
authored
remove unused code (#2542)
1 parent 8673bfa commit 1c1f13e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/tools/torchgen/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ def _read_template(template_fn: str) -> CodeTemplate:
144144

145145
# String hash that's stable across different executions, unlike builtin hash
146146
def string_stable_hash(s: str) -> int:
147-
sha1 = hashlib.sha1(s.encode("latin1")).digest()
148-
return int.from_bytes(sha1, byteorder="little")
147+
assert False
149148

150149

151150
# A small abstraction for writing out generated files and keeping track

0 commit comments

Comments
 (0)