Skip to content

Commit 1e01db9

Browse files
committed
remove functions that are not referenced anywhere
1 parent b145dfa commit 1e01db9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pytensor/utils.py

-17
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
__all__ = [
19-
"cmp",
2019
"get_unbound_function",
2120
"maybe_add_to_os_environ_pathlist",
2221
"DefaultOrderedDict",
@@ -106,22 +105,6 @@ def exc_message(e):
106105
return msg
107106

108107

109-
def cmp(x, y):
110-
"""Return -1 if x < y, 0 if x == y, 1 if x > y."""
111-
return (x > y) - (x < y)
112-
113-
114-
def key_to_cmp(key):
115-
"""
116-
comparator function based on "key" function
117-
"""
118-
119-
def key_cmp(a, b):
120-
return cmp(key(a), key(b))
121-
122-
return key_cmp
123-
124-
125108
def get_unbound_function(unbound):
126109
# Op.make_thunk isn't bound, so don't have a __func__ attr.
127110
# But bound method, have a __func__ method that point to the

0 commit comments

Comments
 (0)