1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

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.
This commit is contained in:
Bartek Iwańczuk 2023-03-04 23:04:08 -04:00 committed by GitHub
parent b40086fd7d
commit 17574f1ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 22 deletions

View file

@ -203,7 +203,6 @@ mod startup_snapshot {
"13_buffer.js", "13_buffer.js",
"30_fs.js", "30_fs.js",
"30_os.js", "30_os.js",
"40_diagnostics.js",
"40_files.js", "40_files.js",
"40_fs_events.js", "40_fs_events.js",
"40_http.js", "40_http.js",

View file

@ -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 };

View file

@ -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 buffer from "internal:runtime/13_buffer.js";
import * as fs from "internal:runtime/30_fs.js"; import * as fs from "internal:runtime/30_fs.js";
import * as os from "internal:runtime/30_os.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 files from "internal:runtime/40_files.js";
import * as fsEvents from "internal:runtime/40_fs_events.js"; import * as fsEvents from "internal:runtime/40_fs_events.js";
import * as process from "internal:runtime/40_process.js"; import * as process from "internal:runtime/40_process.js";
@ -158,7 +157,6 @@ const denoNs = {
}; };
const denoNsUnstable = { const denoNsUnstable = {
DiagnosticCategory: diagnostics.DiagnosticCategory,
listenDatagram: net.listenDatagram, listenDatagram: net.listenDatagram,
umask: fs.umask, umask: fs.umask,
HttpClient: httpClient.HttpClient, HttpClient: httpClient.HttpClient,