remove unused function getMinCharWidth

This commit is contained in:
Aakansha Doshi 2023-03-15 12:24:53 +05:30
parent e900cb0b64
commit fd18896293

View File

@ -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) {