Skip to content

Commit

Permalink
remove helper function that's only used once
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Sep 20, 2023
1 parent 7c48007 commit 4edfa90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion R/AbstractAnnData.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ AbstractAnnData <- R6::R6Class("AbstractAnnData", # nolint
if (!is.null(self[[attr_key]])) {
slot_keys <- self[[attr_key]]()
if (length(slot_keys) > 0) {
cat(" ", pretty_print(attribute, slot_keys), "\n", sep = "")
cat(
" ", attribute, ":",
paste("'", slot_keys, "'", collapse = ", "),
"\n", sep = ""
)
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions R/utilities.R → R/utils.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
pretty_print <- function(label, value) {
paste0(label, ": ", paste0("'", value, "'", collapse = ", "))
}

wrap_message <- function(...) {
txt <- paste0(..., collapse = "")
paste(strwrap(txt, exdent = 2L), collapse = "\n")
Expand Down

0 comments on commit 4edfa90

Please sign in to comment.