From 7ea0b138bc7a61037636eb5b4d2ad9b995a27f79 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Sun, 12 Nov 2017 20:02:54 -0500 Subject: Remove unused code --- src/order_watcher/order_state_watcher.ts | 3 --- src/types.ts | 5 ----- 2 files changed, 8 deletions(-) (limited to 'src') diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts index b69540716..139f13fdf 100644 --- a/src/order_watcher/order_state_watcher.ts +++ b/src/order_watcher/order_state_watcher.ts @@ -63,12 +63,9 @@ export class OrderStateWatcher { web3Wrapper: Web3Wrapper, abiDecoder: AbiDecoder, token: TokenWrapper, exchange: ExchangeWrapper, config?: OrderStateWatcherConfig, ) { - this._orderByOrderHash = {}; this._abiDecoder = abiDecoder; this._web3Wrapper = web3Wrapper; - this._dependentOrderHashes = {}; const eventPollingIntervalMs = _.isUndefined(config) ? undefined : config.eventPollingIntervalMs; - const blockPollingIntervalMs = _.isUndefined(config) ? undefined : config.blockPollingIntervalMs; this._eventWatcher = new EventWatcher(web3Wrapper, eventPollingIntervalMs); this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(token); this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(exchange); diff --git a/src/types.ts b/src/types.ts index b34dbfb4e..fcfbdc92b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,14 +18,11 @@ export enum ZeroExError { SubscriptionNotFound = 'SUBSCRIPTION_NOT_FOUND', SubscriptionAlreadyPresent = 'SUBSCRIPTION_ALREADY_PRESENT', TransactionMiningTimeout = 'TRANSACTION_MINING_TIMEOUT', - FailedToFetchLatestBlock = 'FAILED_TO_FETCH_LATEST_BLOCK', } export enum InternalZeroExError { NoAbiDecoder = 'NO_ABI_DECODER', ZrxNotInTokenRegistry = 'ZRX_NOT_IN_TOKEN_REGISTRY', - LatestBlockNumberNotSet = 'LATEST_BLOCK_NUMBER_NOT_SET', - Web3WrapperRequiredToStartBlockStore = 'WEB3_WRAPPER_REQUIRED_TO_START_BLOCK_STORE', } /** @@ -401,11 +398,9 @@ export interface JSONRPCPayload { /* * eventPollingIntervalMs: How often to poll the Ethereum node for new events - * blockPollingIntervalMs: How often to poll the Ethereum node for new blocks */ export interface OrderStateWatcherConfig { eventPollingIntervalMs?: number; - blockPollingIntervalMs?: number; } /* -- cgit v1.2.3