Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ pub mod metadata;
pub mod reserved_crate_names;
pub mod teams;
pub mod users;
pub mod version_authors;
pub mod version_downloads;
pub mod versions;

Expand Down Expand Up @@ -165,14 +164,6 @@ pub struct DbDump {
/// </tr></table>
pub users: Vec<users::Row>,

/// <table style="width:initial"><tr>
/// <th>version_authors.csv</th>
/// <td>id</td>
/// <td>version_id</td>
/// <td>name</td>
/// </tr></table>
pub version_authors: Vec<version_authors::Row>,

/// <table style="width:initial"><tr>
/// <th>version_downloads.csv</th>
/// <td>version_id</td>
Expand Down
17 changes: 0 additions & 17 deletions src/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ pub struct Loader<'a> {
reserved_crate_names: Option<Callback<'a, crate::reserved_crate_names::Row>>,
teams: Option<Callback<'a, crate::teams::Row>>,
users: Option<Callback<'a, crate::users::Row>>,
version_authors: Option<Callback<'a, crate::version_authors::Row>>,
version_downloads: Option<Callback<'a, crate::version_downloads::Row>>,
versions: Option<Callback<'a, crate::versions::Row>>,
}
Expand Down Expand Up @@ -138,14 +137,6 @@ impl<'a> Loader<'a> {
self
}

pub fn version_authors(
&mut self,
f: impl FnMut(crate::version_authors::Row) + 'a,
) -> &mut Self {
self.version_authors = Some(Callback::new(f));
self
}

pub fn version_downloads(
&mut self,
f: impl FnMut(crate::version_downloads::Row) + 'a,
Expand Down Expand Up @@ -207,7 +198,6 @@ fn do_load(path: &Path, loader: &mut Loader) -> Result<()> {
reserved_crate_names,
teams,
users,
version_authors,
version_downloads,
versions,
} = loader;
Expand All @@ -224,7 +214,6 @@ fn do_load(path: &Path, loader: &mut Loader) -> Result<()> {
&& reserved_crate_names.as_ref().map_or(true, Callback::done)
&& teams.as_ref().map_or(true, Callback::done)
&& users.as_ref().map_or(true, Callback::done)
&& version_authors.as_ref().map_or(true, Callback::done)
&& version_downloads.as_ref().map_or(true, Callback::done)
&& versions.as_ref().map_or(true, Callback::done)
{
Expand Down Expand Up @@ -256,7 +245,6 @@ fn do_load(path: &Path, loader: &mut Loader) -> Result<()> {
reserved_crate_names,
teams,
users,
version_authors,
version_downloads,
versions,
} = loader;
Expand Down Expand Up @@ -285,8 +273,6 @@ fn do_load(path: &Path, loader: &mut Loader) -> Result<()> {
read(teams, entry)?;
} else if path.ends_with("users.csv") {
read(users, entry)?;
} else if path.ends_with("version_authors.csv") {
read(version_authors, entry)?;
} else if path.ends_with("version_downloads.csv") {
read(version_downloads, entry)?;
} else if path.ends_with("versions.csv") {
Expand Down Expand Up @@ -386,7 +372,6 @@ fn do_load_all(path: &Path) -> Result<DbDump> {
let mut reserved_crate_names = Vec::new();
let mut teams = Vec::new();
let mut users = Vec::new();
let mut version_authors = Vec::new();
let mut version_downloads = Vec::new();
let mut versions = Vec::new();

Expand All @@ -403,7 +388,6 @@ fn do_load_all(path: &Path) -> Result<DbDump> {
reserved_crate_names: Some(Callback::new(|row| reserved_crate_names.push(row))),
teams: Some(Callback::new(|row| teams.push(row))),
users: Some(Callback::new(|row| users.push(row))),
version_authors: Some(Callback::new(|row| version_authors.push(row))),
version_downloads: Some(Callback::new(|row| version_downloads.push(row))),
versions: Some(Callback::new(|row| versions.push(row))),
};
Expand All @@ -424,7 +408,6 @@ fn do_load_all(path: &Path) -> Result<DbDump> {
reserved_crate_names,
teams,
users,
version_authors,
version_downloads,
versions,
})
Expand Down
15 changes: 0 additions & 15 deletions src/version_authors.rs

This file was deleted.