Skip to content

Commit d810c32

Browse files
committed
Remove unused default that is always overridden in __init__.py
1 parent 4277133 commit d810c32

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pystac/io.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ def default_write_text_method(uri, txt):
1414
with open(uri, 'w') as f:
1515
f.write(txt)
1616

17-
def default_stac_object_from_dict_method(d):
18-
if 'type' in d:
19-
return Item.from_dict(d)
20-
elif 'extent' in d:
21-
return Collection.from_dict(d)
22-
else:
23-
return Catalog.from_dict(d)
24-
2517
"""Users of PySTAC can replace the read_text_method in order
2618
to expand the ability of PySTAC to read different file systems.
2719
For example, a client of the library might replace this class
@@ -39,7 +31,7 @@ def default_stac_object_from_dict_method(d):
3931
write_text_method = default_write_text_method
4032

4133
# Replaced in __init__ to account for extension objects.
42-
stac_object_from_dict = default_stac_object_from_dict_method
34+
stac_object_from_dict = None
4335

4436
# This is set in __init__.py
4537
STAC_OBJECT_CLASSES = None

0 commit comments

Comments
 (0)