Skip to content

Commit 9de6af4

Browse files
committed
remove overlay
1 parent 4a00db3 commit 9de6af4

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

crates/wasm-pkg-client/src/caching/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,6 @@ impl<T: Cache> CachingClient<T> {
6363
}
6464
}
6565

66-
async fn with_overlays(
67-
mut self,
68-
overlays: impl IntoIterator<Item = (Registry, Arc<InnerClient>)>,
69-
) -> Self {
70-
if let Some(client) = &mut self.client {
71-
client.overlays = overlays.into_iter().collect();
72-
}
73-
self
74-
}
75-
7666
/// Returns whether or not the client is in read-only mode.
7767
pub fn is_readonly(&self) -> bool {
7868
self.client.is_none()

crates/wasm-pkg-client/src/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,6 @@ impl Client {
109109
}
110110
}
111111

112-
/// Like [`Self::new`] but includes sources from source
113-
/// replacement configurations.
114-
pub fn new_with_overlays(
115-
config: Config,
116-
overlays: impl IntoIterator<Item = (Registry, Arc<InnerClient>)>,
117-
) -> Self {
118-
Self {
119-
config: Arc::new(config),
120-
sources: Default::default(),
121-
overlays: overlays.into_iter().collect(),
122-
}
123-
}
124-
125112
/// Returns a reference to the configuration this client was initialized with.
126113
pub fn config(&self) -> &Config {
127114
&self.config

0 commit comments

Comments
 (0)