Skip to content

Commit 8121616

Browse files
authored
Removed dead code repopulate_doc_id_from_doi from DocDetails (#1024)
1 parent 56ebea7 commit 8121616

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/paperqa/types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -940,11 +940,6 @@ def is_hydration_needed(
940940
v is None for k, v in self.model_dump().items() if k not in exclusion
941941
)
942942

943-
def repopulate_doc_id_from_doi(self) -> None:
944-
# TODO: should this be a hash of the doi?
945-
if self.doi:
946-
self.doc_id = encode_id(self.doi)
947-
948943
def __add__(self, other: DocDetails | int) -> DocDetails: # noqa: PLR0912
949944
"""Merge two DocDetails objects together."""
950945
# control for usage w. Python's sum() function

0 commit comments

Comments
 (0)