message: Remove some unused utility functions
diff: *
  * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.
  */
  -import { Event } from '@extraterm/extraterm-extension-api';
  +import { Event } from "@extraterm/extraterm-extension-api";
  import { EventEmitter } from "../../utils/EventEmitter";
  -/**
  - * Convert a value to a boolean.
  - *
  - * @param {Object} value The value to parse and convert.
  - * @param {Boolean} defaultValue (Optional) The default value if the input
  - * was too ambigious. Defaults to false.
  - * @returns {Boolean} The converted value.
  - */
  -export function htmlValueToBool(value: any, defaultValue?: boolean): boolean {
  - if (value === null || value === undefined || value === "") {
  - return defaultValue === undefined ? false : defaultValue;
  - }
  - return ! (value === false || value === "false");
  -}
  -
  -/**
  - * Converts a boolean to a string.
  - *
  - * @param value the boolean to convert
  - * @return the string "true" or "false"
  - */
  -export function booleanToString(value: boolean): string {
  - return value ? "true" : "false";
  -}
  -
  -/**
  - * Trim whitlespace on the right side of a string.
  - *
  - * @param source the string to trim
  - * @return the trimmed string
  - */
  -export function trimRight(source: string): string {
  - if (source === null) {
  - return null;
  - }
  - return ("|"+source).trim().substr(1);
  -}
  -
  -const nbspRegexp = /\u00a0/g;
  -/**
  - * Replace non-breaking space characters with normal spaces.
  - *
  - * @param text the string to replace the characters in
  - * @return new string with new-breaking spaces removed
  - */
  -export function replaceNbsp(text: string): string {
  - return text.replace(nbspRegexp, " ");
  -}
  -
  -//-------------------------------------------------------------------------
  -
  -/**
  - * Parse a string as a boolean value.
  - *
  - * @param value string to parse
  - * @return the boolean value or false if it could not be parsed
  - */
  -export function toBoolean(value: any): boolean {
  - if (value === true || value === false) {
  - return value;
  - }
  - if (value === 0) {
  - return false;
  - }
  - if (value === 'true') {
  - return true;
  - }
  - if (value === 'false') {
  - return false;
  - }
  - return Boolean(value);
  -}
  -
  -/**
  - * Returns the new value if is is available otherwise the default value.
  - *
  - * @param defaultValue
  - * @param newValue
  - * @return Either the default value or the new value.
  - */
  -export function override(defaultValue: any, newValue: any): any {
  - return newValue !== null && newValue !== undefined ? newValue : defaultValue;
  -}
  -
  //-------------------------------------------------------------------------
  /**
  * Utility class for handling CSS colors
  @@ -268,7 +184,7 @@ export class FontLoader {
  // Next phase is wait for the fonts to load.
  const fontPromises: Promise<FontFace>[] = [];
  window.document.fonts.forEach( (font: FontFace) => {
  - if (font.status !== 'loaded' && font.status !== 'loading') {
  + if (font.status !== "loaded" && font.status !== "loading") {
  fontPromises.push(font.load());
  }
  });
  