Skip to content

Commit adcccbc

Browse files
committed
chore: remove dead profile_run_credentials plugin command
1 parent 05aee37 commit adcccbc

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

apps/app/build.rs

-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ fn main() {
151151
"profile_update_managed_modrinth_version",
152152
"profile_repair_managed_modrinth",
153153
"profile_run",
154-
"profile_run_credentials",
155154
"profile_kill",
156155
"profile_edit",
157156
"profile_edit_icon",

apps/app/src/api/profile.rs

-17
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
2828
profile_update_managed_modrinth_version,
2929
profile_repair_managed_modrinth,
3030
profile_run,
31-
profile_run_credentials,
3231
profile_kill,
3332
profile_edit,
3433
profile_edit_icon,
@@ -256,22 +255,6 @@ pub async fn profile_run(path: &str) -> Result<ProcessMetadata> {
256255
Ok(process)
257256
}
258257

259-
// Run Minecraft using a profile using chosen credentials
260-
// Returns the UUID, which can be used to poll
261-
// for the actual Child in the state.
262-
// invoke('plugin:profile|profile_run_credentials', {path, credentials})')
263-
#[tauri::command]
264-
pub async fn profile_run_credentials(
265-
path: &str,
266-
credentials: Credentials,
267-
) -> Result<ProcessMetadata> {
268-
let process =
269-
profile::run_credentials(path, &credentials, &QuickPlayType::None)
270-
.await?;
271-
272-
Ok(process)
273-
}
274-
275258
#[tauri::command]
276259
pub async fn profile_kill(path: &str) -> Result<()> {
277260
profile::kill(path).await?;

packages/app-lib/src/api/profile/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -642,10 +642,9 @@ pub async fn run(
642642
}
643643

644644
/// Run Minecraft using a profile, and credentials for authentication
645-
/// Returns Arc pointer to RwLock to Child
646645
#[tracing::instrument(skip(credentials))]
647646

648-
pub async fn run_credentials(
647+
async fn run_credentials(
649648
path: &str,
650649
credentials: &Credentials,
651650
quick_play_type: &QuickPlayType,

0 commit comments

Comments
 (0)