Skip to content

Commit 8183b17

Browse files
committed
fontIconChar is unused as of 57dee8f
1 parent 699919c commit 8183b17

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

app/javascript/oldjs/miq_application.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,16 +1485,6 @@ window.miqFormatNotification = function(text, bindings) {
14851485
return str;
14861486
};
14871487

1488-
window.fontIconChar = _.memoize((klass) => {
1489-
const tmp = document.createElement('i');
1490-
tmp.className = `hidden ${klass}`;
1491-
document.body.appendChild(tmp);
1492-
const char = window.getComputedStyle(tmp, ':before').content.replace(/'|"/g, '');
1493-
const font = window.getComputedStyle(tmp, ':before').fontFamily;
1494-
tmp.remove();
1495-
return { font, char };
1496-
});
1497-
14981488
window.redirectLogin = function(msg) {
14991489
if (ManageIQ.logoutInProgress) {
15001490
return; // prevent double redirect after pressing the Logout button or when changing group

0 commit comments

Comments
 (0)