Skip to content

Commit 883c084

Browse files
committed
remove unused function
1 parent 462c127 commit 883c084

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

webroot/js/component/operations.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -307,30 +307,6 @@ function syncSharedInputValues(changedInput) {
307307
});
308308
}
309309

310-
// function syntaxHighlightJson(json) {
311-
// if (typeof json !== 'string') {
312-
// json = JSON.stringify(json, null, 2);
313-
// }
314-
//
315-
// json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
316-
//
317-
// return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
318-
// let cls = 'json-number';
319-
// if (/^"/.test(match)) {
320-
// if (/:$/.test(match)) {
321-
// cls = 'json-key';
322-
// } else {
323-
// cls = 'json-string';
324-
// }
325-
// } else if (/true|false/.test(match)) {
326-
// cls = 'json-boolean';
327-
// } else if (/null/.test(match)) {
328-
// cls = 'json-null';
329-
// }
330-
// return '<span class="' + cls + '">' + match + '</span>';
331-
// });
332-
// }
333-
334310
function initializeExecuteHandlers(config) {
335311
if (!document.body.hasAttribute('data-execute-handlers-initialized')) {
336312
document.body.setAttribute('data-execute-handlers-initialized', 'true');

0 commit comments

Comments
 (0)