Skip to content

Commit

Permalink
Remove the unused pygmt.print_clib_info function (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored May 21, 2024
1 parent 8192ca0 commit eaca67d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ Miscellaneous
:toctree: generated

which
print_clib_info
show_versions

.. currentmodule:: pygmt
Expand Down
15 changes: 0 additions & 15 deletions pygmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,6 @@
_atexit.register(_end)


def print_clib_info(file=sys.stdout):
"""
Print information about the GMT shared library that we can find.
Includes the GMT version, default values for parameters, the path to the
``libgmt`` shared library, and GMT directories.
"""
from pygmt.clib import Session

print("GMT library information:", file=file)
with Session() as ses:
lines = [f" {key}: {ses.info[key]}" for key in sorted(ses.info)]
print("\n".join(lines), file=file)


def show_versions(file=sys.stdout):
"""
Print various dependency versions which are useful when submitting bug reports.
Expand Down

0 comments on commit eaca67d

Please sign in to comment.