Remove unused vars

This commit is contained in:
Jordan Prince 2021-06-17 17:59:48 -05:00
parent 217bcb0486
commit a336ee0963
1 changed files with 0 additions and 5 deletions

View File

@ -104,8 +104,6 @@ export const keyToAccountParser = new Map<string, AccountParser>();
export const cache = {
emitter: new EventEmitter(),
totalSubs: 0,
totalObjects: 0,
query: async (
connection: Connection,
pubKey: string | PublicKey,
@ -409,10 +407,7 @@ export function AccountsProvider({ children = null as any }) {
useEffect(() => {
const subs: number[] = [];
cache.emitter.onCache(args => {
cache.totalObjects += 1;
if (args.isNew && args.isActive) {
cache.totalSubs += 1;
let id = args.id;
let deserialize = args.parser;
connection.onAccountChange(new PublicKey(id), info => {