lint: remove unused function

This commit is contained in:
Barış Soner Uşaklı
2024-07-15 12:05:55 -04:00
parent 2a8f7ccd1c
commit 26765fe9aa

View File

@@ -95,10 +95,6 @@ module.exports = function (Topics) {
return postCountInTopic;
}
function replaceImgWithAltText(str) {
return String(str).replace(/<img .*?alt="(.*?)"[^>]*>/gi, '$1');
}
async function handleBlocks(uid, teasers) {
const blockedUids = await user.blocks.list(uid);
if (!blockedUids.length) {