From d2448515e2619f9ad32720f82bc3fc9234a19b66 Mon Sep 17 00:00:00 2001 From: Claudio Romano Date: Tue, 9 May 2017 16:16:40 +0200 Subject: [PATCH] fix: remove unsed code --- src/component.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/component.js b/src/component.js index 1b0542e..525d6b4 100644 --- a/src/component.js +++ b/src/component.js @@ -22,14 +22,6 @@ export default { const REGEXP = i18next.i18next.services.interpolator.regexp; const format = i18next.t(path, { interpolation: { prefix: '#$?', suffix: '?$#' } }); const tchildren = []; - const childsTKeys = {}; - children.forEach((c) => { - if (c.data && c.data.attrs && c.data.attrs.tkey) { - childsTKeys[c.data.attrs.tkey] = c; - } else { - // TODO: warn - } - }); format.split(REGEXP).reduce((memo, match, index) => { let child;