diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index 56bafc7e97441707fbcc6f9ed7c67c0c81dde5e0..7e27650c5574d80bb57ac9b38d47afbe032e05ff 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -350,17 +350,6 @@ class Filesystem {
 		}
 	}
 
-	/**
-	 * fill in the correct values for $user
-	 *
-	 * @param string $user
-	 * @param string $input
-	 * @return string
-	 */
-	private static function setUserVars($user, $input) {
-		return str_replace('$user', $user, $input);
-	}
-
 	/**
 	 * get the default filesystem view
 	 *