if (Meteor.isClient) {
  var sessionVar = Session.get("sessionVar");

  Meteor.defer(function () {
    Meteor.call("clientLoad",
                typeof jsVar === 'undefined' ? 'undefined' : jsVar,
                typeof packageVar === 'undefined' ? 'undefined' : packageVar,
                sessionVar);
  });

  if (window.applicationCache) {
    var call = function () {
      Meteor.call("appcacheReady");
    };
    window.applicationCache.addEventListener('updateready', call, false);
    window.applicationCache.addEventListener('noupdate', call, false);
    window.applicationCache.addEventListener('obsolete', call, false);
  }

  Session.setDefault("sessionVar", true);
}

if (Meteor.isServer) {
  var clientConnections = 0;

  Meteor.methods({
    clientLoad: function (jsVar, packageVar, sessionVar) {
      // Make sure that the process still has the correct working directory.
      process.cwd();
      console.log("client connected: " + clientConnections++);
      console.log("jsVar: " + jsVar);
      console.log("packageVar: " + packageVar);
      console.log("sessionVar: " + sessionVar);
    },
    appcacheReady: function () {
      console.log("appcache ready");
    }
  });
}

@@ -308,334 +308,8 @@
 );%0A%0A
-  if (window.applicationCache) %7B%0A    var call = function () %7B%0A      Meteor.call(%22appcacheReady%22);%0A    %7D;%0A    window.applicationCache.addEventListener('updateready', call, false);%0A    window.applicationCache.addEventListener('noupdate', call, false);%0A    window.applicationCache.addEventListener('obsolete', call, false);%0A  %7D%0A%0A
   Se
@@ -779,85 +779,8 @@
 r);%0A
-    %7D,%0A    appcacheReady: function () %7B%0A      console.log(%22appcache ready%22);%0A
     

Remove unused code from hot-code-push-test