Remove support for FontAwesome 4.7 icon names (#9871)

Remove support for FontAwesome 4.7 icon names (#9871)

diff --git a/app/assets/javascripts/discourse-common/addon/lib/icon-library.js b/app/assets/javascripts/discourse-common/addon/lib/icon-library.js
index decc668..ef60571 100644
--- a/app/assets/javascripts/discourse-common/addon/lib/icon-library.js
+++ b/app/assets/javascripts/discourse-common/addon/lib/icon-library.js
@@ -1,8 +1,6 @@
 import I18n from "I18n";
 import { h } from "virtual-dom";
 import attributeHook from "discourse-common/lib/attribute-hook";
-import deprecated from "discourse-common/lib/deprecated";
-import jQuery from "jquery";
 
 const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
 let _renderers = [];
@@ -43,474 +41,6 @@ const REPLACEMENTS = {
   "notification.membership_request_consolidated": "users"
 };
 
-// TODO: use lib/svg_sprite/fa4-renames.json here
-// Note: these should not be edited manually. They define the fa4-fa5 migration
-const fa4Replacements = {
-  "500px": "fab-500px",
-  "address-book-o": "far-address-book",
-  "address-card-o": "far-address-card",
-  adn: "fab-adn",
-  amazon: "fab-amazon",
-  android: "fab-android",
-  angellist: "fab-angellist",
-  apple: "fab-apple",
-  "area-chart": "chart-area",
-  "arrow-circle-o-down": "far-arrow-alt-circle-down",
-  "arrow-circle-o-left": "far-arrow-alt-circle-left",
-  "arrow-circle-o-right": "far-arrow-alt-circle-right",
-  "arrow-circle-o-up": "far-arrow-alt-circle-up",
-  arrows: "arrows-alt",
-  "arrows-alt": "expand-arrows-alt",
-  "arrows-h": "arrows-alt-h",
-  "arrows-v": "arrows-alt-v",
-  "asl-interpreting": "american-sign-language-interpreting",
-  automobile: "car",
-  bandcamp: "fab-bandcamp",
-  bank: "university",
-  "bar-chart": "far-chart-bar",
-  "bar-chart-o": "far-chart-bar",
-  bathtub: "bath",
-  battery: "battery-full",
-  "battery-0": "battery-empty",
-  "battery-1": "battery-quarter",
-  "battery-2": "battery-half",
-  "battery-3": "battery-three-quarters",
-  "battery-4": "battery-full",
-  behance: "fab-behance",
-  "behance-square": "fab-behance-square",
-  "bell-o": "far-bell",
-  "bell-slash-o": "far-bell-slash",
-  bitbucket: "fab-bitbucket",
-  "bitbucket-square": "fab-bitbucket",
-  bitcoin: "fab-btc",
-  "black-tie": "fab-black-tie",
-  bluetooth: "fab-bluetooth",
-  "bluetooth-b": "fab-bluetooth-b",
-  "bookmark-o": "far-bookmark",
-  btc: "fab-btc",
-  "building-o": "far-building",
-  buysellads: "fab-buysellads",
-  cab: "taxi",
-  calendar: "calendar-alt",
-  "calendar-check-o": "far-calendar-check",
-  "calendar-minus-o": "far-calendar-minus",
-  "calendar-o": "far-calendar",
-  "calendar-plus-o": "far-calendar-plus",
-  "calendar-times-o": "far-calendar-times",
-  "caret-square-o-down": "far-caret-square-down",
-  "caret-square-o-left": "far-caret-square-left",
-  "caret-square-o-right": "far-caret-square-right",
-  "caret-square-o-up": "far-caret-square-up",
-  cc: "far-closed-captioning",
-  "cc-amex": "fab-cc-amex",
-  "cc-diners-club": "fab-cc-diners-club",
-  "cc-discover": "fab-cc-discover",
-  "cc-jcb": "fab-cc-jcb",
-  "cc-mastercard": "fab-cc-mastercard",
-  "cc-paypal": "fab-cc-paypal",
-  "cc-stripe": "fab-cc-stripe",
-  "cc-visa": "fab-cc-visa",
-  chain: "link",
-  "chain-broken": "unlink",
-  "check-circle-o": "far-check-circle",
-  "check-square-o": "far-check-square",
-  chrome: "fab-chrome",
-  "circle-o": "far-circle",
-  "circle-o-notch": "circle-notch",
-  "circle-thin": "far-circle",
-  clipboard: "far-clipboard",
-  "clock-o": "far-clock",
-  clone: "far-clone",
-  close: "times",
-  "cloud-download": "cloud-download-alt",
-  "cloud-upload": "cloud-upload-alt",
-  cny: "yen-sign",
-  "code-fork": "code-branch",
-  codepen: "fab-codepen",
-  codiepie: "fab-codiepie",
-  "comment-o": "far-comment",
-  commenting: "far-comment-dots",
-  "commenting-o": "far-comment-dots",
-  "comments-o": "far-comments",
-  compass: "far-compass",
-  connectdevelop: "fab-connectdevelop",
-  contao: "fab-contao",
-  copyright: "far-copyright",
-  "creative-commons": "fab-creative-commons",
-  "credit-card": "far-credit-card",
-  "credit-card-alt": "credit-card",
-  css3: "fab-css3",
-  cutlery: "utensils",
-  dashboard: "tachometer-alt",
-  dashcube: "fab-dashcube",
-  deafness: "deaf",
-  dedent: "outdent",
-  delicious: "fab-delicious",
-  deviantart: "fab-deviantart",
-  diamond: "far-gem",
-  digg: "fab-digg",
-  discord: "fab-discord",
-  dollar: "dollar-sign",
-  "dot-circle-o": "far-dot-circle",
-  dribbble: "fab-dribbble",
-  "drivers-license": "id-card",
-  "drivers-license-o": "far-id-card",
-  dropbox: "fab-dropbox",
-  drupal: "fab-drupal",
-  edge: "fab-edge",
-  eercast: "fab-sellcast",
-  empire: "fab-empire",
-  "envelope-o": "far-envelope",
-  "envelope-open-o": "far-envelope-open",
-  envira: "fab-envira",
-  etsy: "fab-etsy",
-  eur: "euro-sign",
-  euro: "euro-sign",
-  exchange: "exchange-alt",
-  expeditedssl: "fab-expeditedssl",
-  "external-link": "external-link-alt",
-  "external-link-square": "external-link-square-alt",
-  eye: "far-eye",
-  "eye-slash": "far-eye-slash",
-  eyedropper: "eye-dropper",
-  fa: "fab-font-awesome",
-  facebook: "fab-facebook-f",
-  "facebook-f": "fab-facebook-f",
-  "facebook-official": "fab-facebook",
-  "facebook-square": "fab-facebook-square",
-  feed: "rss",
-  "file-archive-o": "far-file-archive",
-  "file-audio-o": "far-file-audio",
-  "file-code-o": "far-file-code",
-  "file-excel-o": "far-file-excel",
-  "file-image-o": "far-file-image",
-  "file-movie-o": "far-file-video",
-  "file-o": "far-file",
-  "file-pdf-o": "far-file-pdf",
-  "file-photo-o": "far-file-image",
-  "file-picture-o": "far-file-image",
-  "file-powerpoint-o": "far-file-powerpoint",
-  "file-sound-o": "far-file-audio",
-  "file-text": "file-alt",
-  "file-text-o": "far-file-alt",
-  "file-video-o": "far-file-video",
-  "file-word-o": "far-file-word",
-  "file-zip-o": "far-file-archive",
-  "files-o": "far-copy",
-  firefox: "fab-firefox",
-  "first-order": "fab-first-order",
-  "flag-o": "far-flag",
-  flash: "bolt",
-  flickr: "fab-flickr",
-  "floppy-o": "far-save",
-  "folder-o": "far-folder",
-  "folder-open-o": "far-folder-open",
-  "font-awesome": "fab-font-awesome",
-  fonticons: "fab-fonticons",
-  "fort-awesome": "fab-fort-awesome",
-  forumbee: "fab-forumbee",
-  foursquare: "fab-foursquare",
-  "free-code-camp": "fab-free-code-camp",
-  "frown-o": "far-frown",
-  "futbol-o": "far-futbol",
-  gbp: "pound-sign",
-  ge: "fab-empire",
-  gear: "cog",
-  gears: "cogs",
-  "get-pocket": "fab-get-pocket",
-  gg: "fab-gg",
-  "gg-circle": "fab-gg-circle",
-  git: "fab-git",
-  "git-square": "fab-git-square",
-  github: "fab-github",
-  "github-alt": "fab-github-alt",
-  "github-square": "fab-github-square",
-  gitlab: "fab-gitlab",
-  gittip: "fab-gratipay",
-  glass: "glass-martini",
-  glide: "fab-glide",
-  "glide-g": "fab-glide-g",
-  google: "fab-google",
-  "google-plus": "fab-google-plus-g",
-  "google-plus-circle": "fab-google-plus",
-  "google-plus-official": "fab-google-plus",
-  "google-plus-square": "fab-google-plus-square",
-  "google-wallet": "fab-google-wallet",
-  gratipay: "fab-gratipay",
-  grav: "fab-grav",
-  group: "users",
-  "hacker-news": "fab-hacker-news",
-  "hand-grab-o": "far-hand-rock",
-  "hand-lizard-o": "far-hand-lizard",
-  "hand-o-down": "far-hand-point-down",
-  "hand-o-left": "far-hand-point-left",
-  "hand-o-right": "far-hand-point-right",
-  "hand-o-up": "far-hand-point-up",
-  "hand-paper-o": "far-hand-paper",
-  "hand-peace-o": "far-hand-peace",
-  "hand-pointer-o": "far-hand-pointer",
-  "hand-rock-o": "far-hand-rock",
-  "hand-scissors-o": "far-hand-scissors",
-  "hand-spock-o": "far-hand-spock",
-  "hand-stop-o": "far-hand-paper",
-  "handshake-o": "far-handshake",
-  "hard-of-hearing": "deaf",
-  "hdd-o": "far-hdd",
-  header: "heading",
-  "heart-o": "far-heart",
-  "hospital-o": "far-hospital",
-  hotel: "bed",
-  "hourglass-1": "hourglass-start",
-  "hourglass-2": "hourglass-half",
-  "hourglass-3": "hourglass-end",

[... diff too long, it was truncated ...]

GitHub sha: b1c726be

This commit appears in #9871 which was approved by eviltrout. It was merged by pmusaraj.