Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8c7d3e

Browse filesBrowse files
committed
MNT: remove unused functions
1 parent ad82067 commit e8c7d3e
Copy full SHA for e8c7d3e

File tree

Expand file treeCollapse file tree

1 file changed

+0
-16
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-16
lines changed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
-16Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ def get_fd_hash(fd):
7373
return hasher.hexdigest()
7474

7575

76-
def get_file_hash(filename):
77-
"""
78-
Get the SHA256 hash of a given filename.
79-
"""
80-
with open(filename, 'rb') as fd:
81-
return get_fd_hash(fd)
82-
83-
8476
def download_or_cache(url, sha):
8577
"""
8678
Get bytes from the given url or local cache.
@@ -346,14 +338,6 @@ def get_buffer_hash(fd):
346338
return hasher.hexdigest()
347339

348340

349-
def get_file_hash(filename):
350-
"""
351-
Get the SHA256 hash of a given filename.
352-
"""
353-
with open(filename, 'rb') as fd:
354-
return get_buffer_hash(fd)
355-
356-
357341
class PkgConfig(object):
358342
"""
359343
This is a class for communicating with pkg-config.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.