diff --git a/projects/packages/jitm/src/js/jetpack-jitm.js b/projects/packages/jitm/src/js/jetpack-jitm.js index cdba923a513af..9c3ebddb77705 100644 --- a/projects/packages/jitm/src/js/jetpack-jitm.js +++ b/projects/packages/jitm/src/js/jetpack-jitm.js @@ -336,22 +336,6 @@ jQuery( document ).ready( function ( $ ) { } ); }; - const makeAjaxRequest = function ( method, url, contentType, body = null, callback = null ) { - const xhr = new XMLHttpRequest(); - xhr.open( method, url, true ); - xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest' ); - if ( contentType ) { - xhr.setRequestHeader( 'Content-Type', contentType ); - } - xhr.withCredentials = true; - if ( callback ) { - xhr.onreadystatechange = function () { - callback( xhr ); - }; - } - xhr.send( body ); - }; - reFetch(); $( window ).on( 'hashchange', function ( e ) {