Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
blueslip: Remove unused preview_node.
Alex Vandiver6882ec80873c
diff --git a/web/src/blueslip.ts b/web/src/blueslip.tsindex dc26c103068..09786a6029b 100644--- a/web/src/blueslip.ts+++ b/web/src/blueslip.ts@@ -207,28 +207,3 @@ export function measure_time<T>(label: string, f: () => T): T {timings.set(label, elapsed);return ret;}--// Produces an easy-to-read preview on an HTML element. Currently-// only used for including in error report emails; be sure to discuss-// with other developers before using it in a user-facing context-// because it is not XSS-safe.-export function preview_node(node: JQuery | HTMLElement): string {- if (!(node instanceof HTMLElement)) {- node = node[0];- }-- const tag = node.tagName.toLowerCase();- const className = node.className.length ? node.className : false;- const id = node.id.length ? node.id : false;-- const node_preview =- "<" +- tag +- (id ? " id='" + id + "'" : "") +- (className ? " class='" + className + "'" : "") +- "></" +- tag +- ">";-- return node_preview;-}diff --git a/web/tests/lib/zblueslip.js b/web/tests/lib/zblueslip.jsindex a9013972c50..204f9174b48 100644--- a/web/tests/lib/zblueslip.js+++ b/web/tests/lib/zblueslip.js@@ -118,9 +118,6 @@ function make_zblueslip() {lib.measure_time = (label, f) => f();- /* istanbul ignore next */- lib.preview_node = (node) => "node:" + node;-return lib;}