diff --git a/user/profile.php b/user/profile.php
index 36b00e0a9e8..6bae2243a5d 100644
--- a/user/profile.php
+++ b/user/profile.php
@@ -425,11 +425,5 @@ if (isloggedin() && has_capability('moodle/site:sendmessage', $context)
echo '';
}
-if ($CFG->debugdisplay && debugging('', DEBUG_DEVELOPER) && $currentuser) { // Show user object
- echo '