Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Expensify/App into nikki-refactor-b…
Browse files Browse the repository at this point in the history
…eneficial-owners
  • Loading branch information
NikkiWines committed Sep 28, 2022
2 parents 9112524 + c52604a commit 41210fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ const CONST = {
HOMEPAGE_REPORTS_LOADED: 'homepage_reports_loaded',
SWITCH_REPORT: 'switch_report',
SIDEBAR_LOADED: 'sidebar_loaded',
PERSONAL_DETAILS_FORMATTED: 'personal_details_formatted',
SIDEBAR_LINKS_FILTER_REPORTS: 'sidebar_links_filter_reports',
COLD: 'cold',
REPORT_ACTION_ITEM_LAYOUT_DEBOUNCE_TIME: 1500,
TOOLTIP_SENSE: 1000,
Expand Down
3 changes: 0 additions & 3 deletions src/libs/actions/PersonalDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import * as LoginUtils from '../LoginUtils';
import * as ReportUtils from '../ReportUtils';
import Growl from '../Growl';
import * as Localize from '../Localize';
import Timing from './Timing';

let currentUserEmail = '';
Onyx.connect({
Expand Down Expand Up @@ -84,7 +83,6 @@ function getMaxCharacterError(isError) {
* @return {Object}
*/
function formatPersonalDetails(personalDetailsList) {
Timing.start(CONST.TIMING.PERSONAL_DETAILS_FORMATTED);
const formattedResult = {};

// This method needs to be SUPER PERFORMANT because it can be called with a massive list of logins depending on the policies that someone belongs to
Expand Down Expand Up @@ -115,7 +113,6 @@ function formatPersonalDetails(personalDetailsList) {
avatarThumbnail,
};
});
Timing.end(CONST.TIMING.PERSONAL_DETAILS_FORMATTED);
return formattedResult;
}

Expand Down
5 changes: 0 additions & 5 deletions src/pages/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import * as App from '../../../libs/actions/App';
import * as ReportUtils from '../../../libs/ReportUtils';
import withCurrentUserPersonalDetails from '../../../components/withCurrentUserPersonalDetails';
import withWindowDimensions from '../../../components/withWindowDimensions';
import Timing from '../../../libs/actions/Timing';
import reportActionPropTypes from '../report/reportActionPropTypes';
import LHNOptionsList from '../../../components/LHNOptionsList/LHNOptionsList';
import SidebarUtils from '../../../libs/SidebarUtils';
Expand Down Expand Up @@ -100,11 +99,7 @@ class SidebarLinks extends React.Component {
if (_.isEmpty(this.props.personalDetails)) {
return null;
}

Timing.start(CONST.TIMING.SIDEBAR_LINKS_FILTER_REPORTS);
const optionListItems = SidebarUtils.getOrderedReportIDs();
Timing.end(CONST.TIMING.SIDEBAR_LINKS_FILTER_REPORTS);

return (
<View
accessibilityElementsHidden={this.props.isSmallScreenWidth && !this.props.isDrawerOpen}
Expand Down

0 comments on commit 41210fc

Please sign in to comment.