Skip to content

Commit eaca67d

Browse files
authored
Remove the unused pygmt.print_clib_info function (#3257)
1 parent 8192ca0 commit eaca67d

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

doc/api/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ Miscellaneous
203203
:toctree: generated
204204

205205
which
206-
print_clib_info
207206
show_versions
208207

209208
.. currentmodule:: pygmt

pygmt/__init__.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,6 @@
7777
_atexit.register(_end)
7878

7979

80-
def print_clib_info(file=sys.stdout):
81-
"""
82-
Print information about the GMT shared library that we can find.
83-
84-
Includes the GMT version, default values for parameters, the path to the
85-
``libgmt`` shared library, and GMT directories.
86-
"""
87-
from pygmt.clib import Session
88-
89-
print("GMT library information:", file=file)
90-
with Session() as ses:
91-
lines = [f" {key}: {ses.info[key]}" for key in sorted(ses.info)]
92-
print("\n".join(lines), file=file)
93-
94-
9580
def show_versions(file=sys.stdout):
9681
"""
9782
Print various dependency versions which are useful when submitting bug reports.

0 commit comments

Comments
 (0)