From ddac96299d572ba008ce814829bd1c0fb936e372 Mon Sep 17 00:00:00 2001 From: Johannes Zillmann Date: Fri, 9 Apr 2021 18:26:31 +0200 Subject: [PATCH] Fix not used locals --- core/src/transformer/CacluclateStatistics.ts | 2 +- core/test/support/functional.test.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/transformer/CacluclateStatistics.ts b/core/src/transformer/CacluclateStatistics.ts index d759bb8..451d5c7 100644 --- a/core/src/transformer/CacluclateStatistics.ts +++ b/core/src/transformer/CacluclateStatistics.ts @@ -97,7 +97,7 @@ export default class CalculateStatistics extends ItemTransformer { } page = item.page; }); - const mostUsedDistance = parseInt(getMostUsedKey(distanceToOccurrence)); + // const mostUsedDistance = parseInt(getMostUsedKey(distanceToOccurrence)); const fontIdToName: string[] = []; const fontToType = new Map(); diff --git a/core/test/support/functional.test.ts b/core/test/support/functional.test.ts index 50421eb..44e39d0 100644 --- a/core/test/support/functional.test.ts +++ b/core/test/support/functional.test.ts @@ -1,6 +1,4 @@ -import Item from 'src/Item'; import { flatMap, flatten, groupBy } from 'src/support/functional'; -import { items } from 'test/testItems'; test('flatMap', async () => { expect(flatMap([], (e) => e)).toEqual([]);