Skip to content

Commit 8440ddc

Browse files
committed
chore: remove dead profile_run_credentials plugin command
1 parent 143a60f commit 8440ddc

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
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

-15
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
2727
profile_update_managed_modrinth_version,
2828
profile_repair_managed_modrinth,
2929
profile_run,
30-
profile_run_credentials,
3130
profile_kill,
3231
profile_edit,
3332
profile_edit_icon,
@@ -255,20 +254,6 @@ pub async fn profile_run(path: &str) -> Result<ProcessMetadata> {
255254
Ok(process)
256255
}
257256

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

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,9 @@ pub async fn run(path: &str) -> crate::Result<ProcessMetadata> {
634634
}
635635

636636
/// Run Minecraft using a profile, and credentials for authentication
637-
/// Returns Arc pointer to RwLock to Child
638637
#[tracing::instrument(skip(credentials))]
639638

640-
pub async fn run_credentials(
639+
async fn run_credentials(
641640
path: &str,
642641
credentials: &Credentials,
643642
) -> crate::Result<ProcessMetadata> {

0 commit comments

Comments
 (0)