Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
alanthai committed Apr 29, 2024
1 parent 0ccf140 commit ee9ce25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ var util = require('./util.js');
var constants = require('./constant.js');
var analytics = require('./analytics.js');

/**
* Auto log the user into their bolt account
* @param {Object} loginModalComponent - authorization component
* @returns {Promise} The returned promise to fetch account details
*/
async function sessionLogin(loginModalComponent) {
await loginModalComponent.attemptLogin({});
}

/**
* This function uses the authCode and scope returned from authorizeWithEmail
* after the user enters the 6 digits OTP code
Expand Down Expand Up @@ -113,14 +104,6 @@ exports.logout = function () {
});
};

/**
* detect bolt session login
* @param {Object} loginModalComponent - authorization component
*/
exports.detectSessionLogin = function (loginModalComponent) {
sessionLogin(loginModalComponent);
};

/**
* mount bolt login status component
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
'use strict';

exports.EventAccountRecognitionCheckPerformed = 'Account recognition check performed';
exports.EventDetailEntryBegan = 'Detail entry began';
exports.EventShippingDetailsFullyEntered = 'Shipping details fully entered';
exports.EventShippingMethodStepComplete = 'Shipping method step complete';
exports.EventPaymentMethodSelected = 'Payment method selected';
exports.EventPaymentDetailsFullyEntered = 'Payment details fully entered';
exports.EventPaymentComplete = 'Payment complete';
exports.EventPaymentRejected = 'Payment rejected';
exports.EventClickPayButton = 'Clicks pay button';

0 comments on commit ee9ce25

Please sign in to comment.