Removing conditionals that are not needed.

This commit is contained in:
Brian E. Granger 2014-03-03 16:03:06 -08:00
parent e374ca5ebb
commit 6f4263dc74

View File

@ -525,7 +525,6 @@ var IPython = (function (IPython) {
* @param [cell] {Cell} Cell to enter command mode on.
**/
Notebook.prototype.handle_command_mode = function (cell) {
if (cell === null) { return; } // TODO: do I really need this?
if (this.mode !== 'command') {
cell.command_mode(); // TODO: is this OK here?
this.mode = 'command';
@ -556,7 +555,6 @@ var IPython = (function (IPython) {
* @param [cell] {Cell} Cell to enter edit mode on.
**/
Notebook.prototype.handle_edit_mode = function (cell) {
if (cell === null) { return; } // TODO: do I really need this?
if (this.mode !== 'edit') {
cell.edit_mode();
this.mode = 'edit';