浏览代码

remove unused function getMinCharWidth

Aakansha Doshi 2 年之前
父节点
当前提交
fd18896293
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      src/element/textMeasurements.ts

+ 0 - 10
src/element/textMeasurements.ts

@@ -112,16 +112,6 @@ export const charWidth = (() => {
   };
 })();
 
-export const getMinCharWidth = (font: FontString) => {
-  const cache = charWidth.getCache(font);
-  if (!cache) {
-    return 0;
-  }
-  const cacheWithOutEmpty = cache.filter((val) => val !== undefined);
-
-  return Math.min(...cacheWithOutEmpty);
-};
-
 export const getMaxCharWidth = (font: FontString) => {
   const cache = charWidth.getCache(font);
   if (!cache) {