diff --git a/core/includes/file.inc b/core/includes/file.inc
index 6ffb269..200b6e2 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -608,7 +608,7 @@ function file_save_htaccess($directory, $private = TRUE, $force_overwrite = FALS
     // Short circuit if the .htaccess file already exists.
     return TRUE;
   }
-  $htaccess_lines = file_htaccess_lines($private);
+  $htaccess_lines = FileStorage::htaccessLines($private);
 
   // Write the .htaccess file.
   if (file_exists($directory) && is_writable($directory) && file_put_contents($htaccess_path, $htaccess_lines)) {
@@ -622,23 +622,6 @@ function file_save_htaccess($directory, $private = TRUE, $force_overwrite = FALS
 }
 
 /**
- * Returns the standard .htaccess lines that Drupal writes to file directories.
- *
- * @param bool $private
- *   (Optional) Set to FALSE to return the .htaccess lines for a web-accessible
- *   public directory. The default is TRUE, which returns the .htaccess lines
- *   for a private directory that should not be web-accessible.
- *
- * @return string
- *   The desired contents of the .htaccess file.
- *
- * @see file_create_htaccess()
- */
-function file_htaccess_lines($private = TRUE) {
-  return FileStorage::htaccessLines($private);
-}
-
-/**
  * Determines whether the URI has a valid scheme for file API operations.
  *
  * There must be a scheme and it must be a Drupal-provided scheme like
diff --git a/core/lib/Drupal/Component/PhpStorage/FileStorage.php b/core/lib/Drupal/Component/PhpStorage/FileStorage.php
index 78f1222..71ff3f2 100644
--- a/core/lib/Drupal/Component/PhpStorage/FileStorage.php
+++ b/core/lib/Drupal/Component/PhpStorage/FileStorage.php
@@ -66,16 +66,15 @@ public function save($name, $code) {
   /**
    * Returns the standard .htaccess lines that Drupal writes to file directories.
    *
-   * This code is located here so this component can be stand-alone, but it is
-   * also called by file_htaccess_lines().
-   *
    * @param bool $private
-   *   (Optional) Set to FALSE to return the .htaccess lines for an open and
+   *   (optional) Set to FALSE to return the .htaccess lines for an open and
    *   public directory. The default is TRUE, which returns the .htaccess lines
    *   for a private and protected directory.
    *
    * @return string
    *   The desired contents of the .htaccess file.
+   *
+   * @see file_create_htaccess()
    */
   public static function htaccessLines($private = TRUE) {
     $lines = <<<EOF
diff --git a/core/modules/system/src/Tests/File/DirectoryTest.php b/core/modules/system/src/Tests/File/DirectoryTest.php
index 158be71..104bece 100644
--- a/core/modules/system/src/Tests/File/DirectoryTest.php
+++ b/core/modules/system/src/Tests/File/DirectoryTest.php
@@ -7,6 +7,8 @@
 
 namespace Drupal\system\Tests\File;
 
+use Drupal\Component\PhpStorage\FileStorage;
+
 /**
  * Tests operations dealing with directories.
  *
@@ -93,7 +95,7 @@ function testFileCheckDirectoryHandling() {
     $this->assertTrue(is_file(file_default_scheme() . '://.htaccess'), 'Successfully re-created the .htaccess file in the files directory.', 'File');
     // Verify contents of .htaccess file.
     $file = file_get_contents(file_default_scheme() . '://.htaccess');
-    $this->assertEqual($file, file_htaccess_lines(FALSE), 'The .htaccess file contains the proper content.', 'File');
+    $this->assertEqual($file, FileStorage::htaccessLines(FALSE), 'The .htaccess file contains the proper content.', 'File');
   }
 
   /**
