diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index a1edf87..a0d304f 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -1183,13 +1183,11 @@ var IPython = (function (IPython) {
* @method collapse_all_output
*/
Notebook.prototype.collapse_all_output = function () {
- var ncells = this.ncells();
- var cells = this.get_cells();
- for (var i=0; i