From aad8c704989d1fca65e1889e76b558c3bdf85586 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 18 Oct 2017 23:14:29 -0700 Subject: [PATCH] Remove unnecessary console.logs --- app/internal_packages/composer/lib/composer-view.jsx | 1 - app/src/flux/stores/draft-editing-session.es6 | 9 --------- 2 files changed, 10 deletions(-) diff --git a/app/internal_packages/composer/lib/composer-view.jsx b/app/internal_packages/composer/lib/composer-view.jsx index fa2066d88..cfe91380d 100644 --- a/app/internal_packages/composer/lib/composer-view.jsx +++ b/app/internal_packages/composer/lib/composer-view.jsx @@ -546,7 +546,6 @@ export default class ComposerView extends React.Component { }; _onBodyChanged = event => { - console.log(`adding body changes: ${event.target.value}`); this.props.session.changes.add({ body: event.target.value }); return; }; diff --git a/app/src/flux/stores/draft-editing-session.es6 b/app/src/flux/stores/draft-editing-session.es6 index beed134ea..7340e3435 100644 --- a/app/src/flux/stores/draft-editing-session.es6 +++ b/app/src/flux/stores/draft-editing-session.es6 @@ -82,9 +82,7 @@ class DraftChangeSet extends EventEmitter { this._saving = this._pending; this._pending = {}; - console.log('_saving = ' + JSON.stringify(this._saving)); return this.callbacks.onCommit().then(() => { - console.log('_saving cleared'); this._saving = {}; }); }; @@ -380,8 +378,6 @@ export default class DraftEditingSession extends MailspringStore { return; } - console.log('_onDraftChanged'); - // If our draft has been changed, only accept values which are present. // If `body` is undefined, assume it's not loaded. Do not overwrite old body. const nextDraft = change.objects @@ -399,7 +395,6 @@ export default class DraftEditingSession extends MailspringStore { } nextValues[key] = nextDraft[key]; } - console.log('_setDraft nextValues: ' + JSON.stringify(nextValues)); this._setDraft(Object.assign(new Message(), this._draft, nextValues)); this.trigger(); } @@ -427,12 +422,8 @@ export default class DraftEditingSession extends MailspringStore { const baseDraft = draft || inMemoryDraft; const updatedDraft = this.changes.applyToModel(baseDraft); const task = new SyncbackDraftTask({ draft: updatedDraft }); - console.log('changeSetCommit queueing task'); Actions.queueTask(task); await TaskQueue.waitForPerformLocal(task); - console.log( - 'changeSetCommit finished waiting for performLocal. At this point, onDraftChanged should have been called.' - ); } // Undo / Redo