diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/broadcast_channel/lib.rs | 6 | ||||
-rw-r--r-- | ext/console/lib.rs | 5 | ||||
-rw-r--r-- | ext/crypto/lib.rs | 5 | ||||
-rw-r--r-- | ext/fetch/lib.rs | 5 | ||||
-rw-r--r-- | ext/net/lib.rs | 5 | ||||
-rw-r--r-- | ext/url/lib.rs | 5 | ||||
-rw-r--r-- | ext/web/lib.rs | 5 | ||||
-rw-r--r-- | ext/websocket/lib.rs | 5 | ||||
-rw-r--r-- | ext/webstorage/lib.rs | 4 |
9 files changed, 0 insertions, 45 deletions
diff --git a/ext/broadcast_channel/lib.rs b/ext/broadcast_channel/lib.rs index 0b0c2495a..91ee67674 100644 --- a/ext/broadcast_channel/lib.rs +++ b/ext/broadcast_channel/lib.rs @@ -16,7 +16,6 @@ use deno_core::Resource; use deno_core::ResourceId; use deno_core::ZeroCopyBuf; use std::cell::RefCell; -use std::path::PathBuf; use std::rc::Rc; #[async_trait] @@ -121,8 +120,3 @@ pub fn init<BC: BroadcastChannel + 'static>( }) .build() } - -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")) - .join("lib.deno_broadcast_channel.d.ts") -} diff --git a/ext/console/lib.rs b/ext/console/lib.rs index 6c5bba9fa..03b3a79c0 100644 --- a/ext/console/lib.rs +++ b/ext/console/lib.rs @@ -2,7 +2,6 @@ use deno_core::include_js_files; use deno_core::Extension; -use std::path::PathBuf; pub fn init() -> Extension { Extension::builder() @@ -13,7 +12,3 @@ pub fn init() -> Extension { )) .build() } - -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_console.d.ts") -} diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs index f33c25f00..69381e139 100644 --- a/ext/crypto/lib.rs +++ b/ext/crypto/lib.rs @@ -53,7 +53,6 @@ use sha2::Sha256; use sha2::Sha384; use sha2::Sha512; use std::convert::TryFrom; -use std::path::PathBuf; pub use rand; // Re-export rand @@ -890,7 +889,3 @@ pub fn op_crypto_unwrap_key( _ => Err(type_error("Unsupported algorithm")), } } - -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_crypto.d.ts") -} diff --git a/ext/fetch/lib.rs b/ext/fetch/lib.rs index 9296fb95c..e1859e8e3 100644 --- a/ext/fetch/lib.rs +++ b/ext/fetch/lib.rs @@ -45,7 +45,6 @@ use std::borrow::Cow; use std::cell::RefCell; use std::convert::From; use std::path::Path; -use std::path::PathBuf; use std::pin::Pin; use std::rc::Rc; use tokio::io::AsyncReadExt; @@ -174,10 +173,6 @@ pub trait FetchPermissions { fn check_read(&mut self, _p: &Path) -> Result<(), AnyError>; } -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_fetch.d.ts") -} - #[derive(Deserialize)] #[serde(rename_all = "camelCase")] pub struct FetchArgs { diff --git a/ext/net/lib.rs b/ext/net/lib.rs index 15bf8a79a..c9b888a65 100644 --- a/ext/net/lib.rs +++ b/ext/net/lib.rs @@ -14,7 +14,6 @@ use deno_core::OpState; use deno_tls::rustls::RootCertStore; use std::cell::RefCell; use std::path::Path; -use std::path::PathBuf; use std::rc::Rc; pub trait NetPermissions { @@ -61,10 +60,6 @@ pub fn check_unstable2(state: &Rc<RefCell<OpState>>, api_name: &str) { state.borrow::<UnstableChecker>().check_unstable(api_name) } -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_net.d.ts") -} - #[derive(Clone)] pub struct DefaultTlsOptions { pub root_cert_store: Option<RootCertStore>, diff --git a/ext/url/lib.rs b/ext/url/lib.rs index a36c14608..f8d659f00 100644 --- a/ext/url/lib.rs +++ b/ext/url/lib.rs @@ -14,7 +14,6 @@ use deno_core::url::Url; use deno_core::Extension; use deno_core::ZeroCopyBuf; use std::panic::catch_unwind; -use std::path::PathBuf; use crate::urlpattern::op_urlpattern_parse; use crate::urlpattern::op_urlpattern_process_match_input; @@ -197,7 +196,3 @@ pub fn op_url_stringify_search_params( .finish(); Ok(search) } - -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_url.d.ts") -} diff --git a/ext/web/lib.rs b/ext/web/lib.rs index b8f948159..f117bfb9d 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -27,7 +27,6 @@ use serde::Serialize; use std::borrow::Cow; use std::cell::RefCell; use std::fmt; -use std::path::PathBuf; use std::usize; use crate::blob::op_blob_create_object_url; @@ -393,10 +392,6 @@ fn op_encoding_encode_into( }) } -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_web.d.ts") -} - #[derive(Debug)] pub struct DomExceptionQuotaExceededError { pub msg: String, diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 3384a8f9c..76ca92136 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -33,7 +33,6 @@ use std::borrow::Cow; use std::cell::RefCell; use std::convert::TryFrom; use std::fmt; -use std::path::PathBuf; use std::rc::Rc; use std::sync::Arc; use tokio::net::TcpStream; @@ -507,10 +506,6 @@ pub fn init<P: WebSocketPermissions + 'static>( .build() } -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_websocket.d.ts") -} - #[derive(Debug)] pub struct DomExceptionNetworkError { pub msg: String, diff --git a/ext/webstorage/lib.rs b/ext/webstorage/lib.rs index ef053d2b9..0aafefe62 100644 --- a/ext/webstorage/lib.rs +++ b/ext/webstorage/lib.rs @@ -46,10 +46,6 @@ pub fn init(origin_storage_dir: Option<PathBuf>) -> Extension { .build() } -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_webstorage.d.ts") -} - struct LocalStorage(Connection); struct SessionStorage(Connection); |