diff options
-rw-r--r-- | src/commands/modification.rs | 9 | ||||
-rw-r--r-- | src/db.rs | 8 | ||||
-rw-r--r-- | src/files.rs | 1 | ||||
-rw-r--r-- | src/lib.rs | 2 |
4 files changed, 0 insertions, 20 deletions
diff --git a/src/commands/modification.rs b/src/commands/modification.rs index fdb70c7..577bbd1 100644 --- a/src/commands/modification.rs +++ b/src/commands/modification.rs | |||
@@ -166,8 +166,6 @@ async fn get_mod_infos( | |||
166 | 166 | ||
167 | let mut ids = vec![]; | 167 | let mut ids = vec![]; |
168 | 168 | ||
169 | // println!("{:?}", mod_ids); | ||
170 | |||
171 | for id in mod_ids { | 169 | for id in mod_ids { |
172 | setmap.insert(id.0.to_string(), id.1); | 170 | setmap.insert(id.0.to_string(), id.1); |
173 | ids.push(id.0); | 171 | ids.push(id.0); |
@@ -182,8 +180,6 @@ async fn get_mod_infos( | |||
182 | _ => panic!("PANIC"), | 180 | _ => panic!("PANIC"), |
183 | }; | 181 | }; |
184 | for project in m_projects { | 182 | for project in m_projects { |
185 | // println!("\t└{}", project.title); | ||
186 | // println!("\t └Get versions"); | ||
187 | let available_versions = versions( | 183 | let available_versions = versions( |
188 | &config.apis.modrinth, | 184 | &config.apis.modrinth, |
189 | String::from(&project.id), | 185 | String::from(&project.id), |
@@ -196,7 +192,6 @@ async fn get_mod_infos( | |||
196 | let file: String; | 192 | let file: String; |
197 | if !available_versions.is_empty() { | 193 | if !available_versions.is_empty() { |
198 | let current_id = extract_current_version(available_versions.clone())?; | 194 | let current_id = extract_current_version(available_versions.clone())?; |
199 | // println!("\t └Current version: {}", current_id); | ||
200 | 195 | ||
201 | current_version = Some( | 196 | current_version = Some( |
202 | available_versions | 197 | available_versions |
@@ -219,8 +214,6 @@ async fn get_mod_infos( | |||
219 | available_versions_vec.push(ver.id); | 214 | available_versions_vec.push(ver.id); |
220 | } | 215 | } |
221 | 216 | ||
222 | // println!("{:?}", setmap); | ||
223 | |||
224 | projectinfo.push(ProjectInfo { | 217 | projectinfo.push(ProjectInfo { |
225 | mod_id: String::from(&project.id), | 218 | mod_id: String::from(&project.id), |
226 | slug: project.slug.clone(), | 219 | slug: project.slug.clone(), |
@@ -231,7 +224,6 @@ async fn get_mod_infos( | |||
231 | set_version: *setmap.get(&project.slug).unwrap(), | 224 | set_version: *setmap.get(&project.slug).unwrap(), |
232 | }) | 225 | }) |
233 | } else { | 226 | } else { |
234 | // println!("\t └There's currently no mod version for your specified target"); | ||
235 | current_version = None; | 227 | current_version = None; |
236 | file = String::from("NONE"); | 228 | file = String::from("NONE"); |
237 | available_versions_vec.push(String::from("NONE")); | 229 | available_versions_vec.push(String::from("NONE")); |
@@ -335,7 +327,6 @@ pub fn mod_remove(config: &Cfg, id: &str, list: &List) -> MLE<()> { | |||
335 | Ok(m) => m, | 327 | Ok(m) => m, |
336 | Err(err) => { | 328 | Err(err) => { |
337 | if err.to_string() == "Database: NO_MODS_USERLIST" { | 329 | if err.to_string() == "Database: NO_MODS_USERLIST" { |
338 | println!(" ✓"); | ||
339 | return Ok(()); | 330 | return Ok(()); |
340 | }; | 331 | }; |
341 | return Err(err); | 332 | return Err(err); |
@@ -165,11 +165,6 @@ pub fn mods_get_versions(config: &Cfg, mods: Vec<String>) -> MLE<Vec<DBModlistVe | |||
165 | 165 | ||
166 | for ver in id_iter { | 166 | for ver in id_iter { |
167 | let version = ver?; | 167 | let version = ver?; |
168 | // println!( | ||
169 | // "\t({}) Get versions from the database", | ||
170 | // String::from(&version[2]) | ||
171 | // ); | ||
172 | //println!("Found versions {} for mod {}", version[1], version[0]); | ||
173 | versionmaps.push(DBModlistVersions { | 168 | versionmaps.push(DBModlistVersions { |
174 | mod_id: String::from(&version[0]), | 169 | mod_id: String::from(&version[0]), |
175 | versions: String::from(&version[1]), | 170 | versions: String::from(&version[1]), |
@@ -473,7 +468,6 @@ pub fn userlist_get_all_downloads( | |||
473 | 468 | ||
474 | for link in link_iter { | 469 | for link in link_iter { |
475 | let l = link?; | 470 | let l = link?; |
476 | // println!("Found link {}", String::from(&l)); | ||
477 | links.push(l) | 471 | links.push(l) |
478 | } | 472 | } |
479 | 473 | ||
@@ -496,8 +490,6 @@ pub fn lists_insert( | |||
496 | mod_loader: &Modloader, | 490 | mod_loader: &Modloader, |
497 | download_folder: &str, | 491 | download_folder: &str, |
498 | ) -> MLE<()> { | 492 | ) -> MLE<()> { |
499 | // println!("Creating list {}", id); | ||
500 | |||
501 | let data = format!("{}/data.db", config.data); | 493 | let data = format!("{}/data.db", config.data); |
502 | let connection = Connection::open(data)?; | 494 | let connection = Connection::open(data)?; |
503 | 495 | ||
diff --git a/src/files.rs b/src/files.rs index e874d9d..c81857b 100644 --- a/src/files.rs +++ b/src/files.rs | |||
@@ -160,7 +160,6 @@ pub fn disable_version( | |||
160 | versionid: String, | 160 | versionid: String, |
161 | mod_id: String, | 161 | mod_id: String, |
162 | ) -> MLE<()> { | 162 | ) -> MLE<()> { |
163 | //println!("Disabling version {} for mod {}", versionid, mod_id); | ||
164 | let file = get_file_path(¤t_list, String::from(&versionid))?; | 163 | let file = get_file_path(¤t_list, String::from(&versionid))?; |
165 | let disabled = format!("{}.disabled", file); | 164 | let disabled = format!("{}.disabled", file); |
166 | 165 | ||
@@ -117,14 +117,12 @@ impl VersionLevel { | |||
117 | let release = versions | 117 | let release = versions |
118 | .find(|ver| ver.version_type == GameVersionType::release) | 118 | .find(|ver| ver.version_type == GameVersionType::release) |
119 | .unwrap(); | 119 | .unwrap(); |
120 | println!("{:?}", release); | ||
121 | Ok(release.version) | 120 | Ok(release.version) |
122 | } | 121 | } |
123 | VersionLevel::Snapshot => { | 122 | VersionLevel::Snapshot => { |
124 | let snapshot = versions | 123 | let snapshot = versions |
125 | .find(|ver| ver.version_type == GameVersionType::snapshot) | 124 | .find(|ver| ver.version_type == GameVersionType::snapshot) |
126 | .unwrap(); | 125 | .unwrap(); |
127 | println!("{:?}", snapshot); | ||
128 | Ok(snapshot.version) | 126 | Ok(snapshot.version) |
129 | } | 127 | } |
130 | VersionLevel::Version(v) => { | 128 | VersionLevel::Version(v) => { |