From db3415163071d7436657887c520ba0b04091c1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Fri, 3 Jul 2026 15:33:27 +0200 Subject: [PATCH] chore: rm unused code --- R/utils-s3.R | 5 ----- 1 file changed, 5 deletions(-) diff --git a/R/utils-s3.R b/R/utils-s3.R index ac18c529de6..0958f90863a 100644 --- a/R/utils-s3.R +++ b/R/utils-s3.R @@ -75,11 +75,6 @@ s3_register <- function(generic, class, method = NULL) { } .rlang_s3_register_compat <- function(fn, try_rlang = TRUE) { - # Compats that behave the same independently of rlang's presence - out <- switch(fn, - is_installed = return(function(pkg) requireNamespace(pkg, quietly = TRUE)) - ) - # Only use rlang if it is fully loaded (#1482) if (try_rlang && requireNamespace("rlang", quietly = TRUE) &&