Skip to content

Commit

Permalink
Remove mdc() function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvartan committed May 23, 2021
1 parent 17a6d9e commit d54c3bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ midday_change <- function(x) {
x
}

mdc <- function(x) midday_change(x)

clock_roll <- function(x) {
classes <- c("Duration", "Period", "difftime", "hms")
checkmate::assert_multi_class(x, classes)
Expand Down
5 changes: 0 additions & 5 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ test_that("midday_change() | general test", {
lubridate::ymd_hms("1970-01-02 06:00:00"))
expect_equal(object, expected)

# Wrapper function
x <- lubridate::ymd_hms("2000-05-04 18:00:00")
object <- mdc(x)
expect_equal(object, lubridate::ymd_hms("1970-01-01 18:00:00"))

# Error test
expect_error(midday_change(1))
})
Expand Down

0 comments on commit d54c3bf

Please sign in to comment.