From 0500d2fb6e17f436535cb4bb5336c139a99e8cfe Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Thu, 31 May 2018 15:33:08 -0700 Subject: Remove old parse code --- .../ts/components/legacy_portal/legacy_portal.tsx | 26 ---------------------- 1 file changed, 26 deletions(-) (limited to 'packages/website/ts/components') diff --git a/packages/website/ts/components/legacy_portal/legacy_portal.tsx b/packages/website/ts/components/legacy_portal/legacy_portal.tsx index 446b7507e..e5d152e3e 100644 --- a/packages/website/ts/components/legacy_portal/legacy_portal.tsx +++ b/packages/website/ts/components/legacy_portal/legacy_portal.tsx @@ -363,32 +363,6 @@ export class LegacyPortal extends React.Component { - const queryPair = queryParam.split('='); - return queryPair[0] === 'order'; - }); - if (_.isUndefined(orderQueryParam)) { - return undefined; - } - const orderPair = orderQueryParam.split('='); - if (orderPair.length !== 2) { - return undefined; - } - - const order = JSON.parse(decodeURIComponent(orderPair[1])); - const validationResult = validator.validate(order, portalOrderSchema); - if (validationResult.errors.length > 0) { - logUtils.log(`Invalid shared order: ${validationResult.errors}`); - return undefined; - } - return order; - } private _updateScreenWidth(): void { const newScreenWidth = utils.getScreenWidth(); this.props.dispatcher.updateScreenWidth(newScreenWidth); -- cgit