Revert "feat: add Deno.osName()" (#6261)

Deno.build.os provides the same functionality

This reverts commit 6ccf9037a6.
This commit is contained in:
Ryan Dahl 2020-06-12 09:53:53 -04:00 committed by GitHub
parent b34f468943
commit e9424bf6b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 49 deletions

View file

@ -32,18 +32,6 @@ declare namespace Deno {
* Requires `allow-read` and `allow-write` permissions. */
export function linkSync(oldpath: string, newpath: string): void;
/**
* Returns the os name.
*
* ```ts
* console.log(Deno.osName()); // e.g. "Linux"
* ```
*
*/
export function osName(): string;
/** Creates `newpath` as a hard link to `oldpath`.
/** **UNSTABLE**: This API needs a security review.
*
* Creates `newpath` as a hard link to `oldpath`.