diff --git a/core/modules/system/tests/modules/common_test/common_test.module b/core/modules/system/tests/modules/common_test/common_test.module
index 660404ab8554eecd819fa61390339dae2c571edf..acb8bede3dd946a89383dc9cdb9e7f2e95530a03 100644
--- a/core/modules/system/tests/modules/common_test/common_test.module
+++ b/core/modules/system/tests/modules/common_test/common_test.module
@@ -8,14 +8,6 @@
 use Drupal\Core\Asset\AttachedAssetsInterface;
 use Drupal\Core\Language\LanguageInterface;
 
-/**
- * Applies #printed to an element to help test #pre_render.
- */
-function common_test_drupal_render_printing_pre_render($elements) {
-  $elements['#printed'] = TRUE;
-  return $elements;
-}
-
 /**
  * Implements hook_TYPE_alter().
  */