From 17574f1ef7adf4aea91ba497759ac3e3fed50f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 4 Mar 2023 23:04:08 -0400 Subject: [PATCH] refactor: remove unused 40_diagnostics.js file (#18021) This file was not used anywhere - even though it exposed an unstable "Deno.DiagnosticCategory" API. Seems like a left over from when we had "Deno.emit" API. --- runtime/build.rs | 1 - runtime/js/40_diagnostics.js | 19 ------------------- runtime/js/90_deno_ns.js | 2 -- 3 files changed, 22 deletions(-) delete mode 100644 runtime/js/40_diagnostics.js diff --git a/runtime/build.rs b/runtime/build.rs index fd93b90019..df8e5acab9 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -203,7 +203,6 @@ mod startup_snapshot { "13_buffer.js", "30_fs.js", "30_os.js", - "40_diagnostics.js", "40_files.js", "40_fs_events.js", "40_http.js", diff --git a/runtime/js/40_diagnostics.js b/runtime/js/40_diagnostics.js deleted file mode 100644 index 669a54263c..0000000000 --- a/runtime/js/40_diagnostics.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. - -// Diagnostic provides an abstraction for advice/errors received from a -// compiler, which is strongly influenced by the format of TypeScript -// diagnostics. - -const DiagnosticCategory = { - 0: "Warning", - 1: "Error", - 2: "Suggestion", - 3: "Message", - - Warning: 0, - Error: 1, - Suggestion: 2, - Message: 3, -}; - -export { DiagnosticCategory }; diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 6bb3d10d69..a76eb5bde7 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -18,7 +18,6 @@ import * as io from "internal:deno_io/12_io.js"; import * as buffer from "internal:runtime/13_buffer.js"; import * as fs from "internal:runtime/30_fs.js"; import * as os from "internal:runtime/30_os.js"; -import * as diagnostics from "internal:runtime/40_diagnostics.js"; import * as files from "internal:runtime/40_files.js"; import * as fsEvents from "internal:runtime/40_fs_events.js"; import * as process from "internal:runtime/40_process.js"; @@ -158,7 +157,6 @@ const denoNs = { }; const denoNsUnstable = { - DiagnosticCategory: diagnostics.DiagnosticCategory, listenDatagram: net.listenDatagram, umask: fs.umask, HttpClient: httpClient.HttpClient,