Index: src/bp-templates/bp-legacy/buddypress-functions.php
===================================================================
--- src/bp-templates/bp-legacy/buddypress-functions.php	(revision 10653)
+++ src/bp-templates/bp-legacy/buddypress-functions.php	(working copy)
@@ -86,7 +86,6 @@
 		add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles'   ) ); // Enqueue theme CSS
 		add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts'  ) ); // Enqueue theme JS
 		add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization
-		add_action( 'bp_head',            array( $this, 'head_scripts'     ) ); // Output some extra JS in the <head>.
 
 		/** Body no-js Class **************************************************/
 
@@ -430,23 +429,6 @@
 	}
 
 	/**
-	 * Put some scripts in the header, like AJAX url for wp-lists.
-	 *
-	 * @since 1.7.0
-	 */
-	public function head_scripts() {
-	?>
-
-		<script type="text/javascript">
-			/* <![CDATA[ */
-			var ajaxurl = '<?php echo bp_core_ajax_url(); ?>';
-			/* ]]> */
-		</script>
-
-	<?php
-	}
-
-	/**
 	 * Adds the no-js class to the body tag.
 	 *
 	 * This function ensures that the <body> element will have the 'no-js' class by default. If you're
