Skip to content

Commit

Permalink
rm lightweight_port option
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Dec 18, 2024
1 parent a06b0ca commit 2245b58
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions simulator/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ pub struct State {
pub time_scale: f32,
pub port: u16,
pub lightweight: bool,
pub lightweight_port: u16,
pub vsync: bool,
pub settings_dir: String,
pub time_step: i32,
Expand Down Expand Up @@ -108,7 +107,6 @@ impl std::default::Default for State {
time_scale: 1.0,
port: 8080,
lightweight: false,
lightweight_port: 8081,
vsync: true,
settings_dir: String::new(),
time_step: 1000000,
Expand Down Expand Up @@ -145,7 +143,6 @@ impl State {
self.time_scale = state.time_scale;
self.port = state.port;
self.lightweight = state.lightweight;
self.lightweight_port = state.lightweight_port;
self.vsync = state.vsync;
self.settings_dir = state.settings_dir;
self.debug = state.debug;
Expand Down
2 changes: 0 additions & 2 deletions src-tauri/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ pub struct SimulatorOptions {
pub window_height: u32,
pub unity: bool,
pub lightweight: bool,
pub lightweight_port: u16,
}

impl Default for SimulatorOptions {
Expand All @@ -78,7 +77,6 @@ impl Default for SimulatorOptions {
window_height: 600,
unity: false,
lightweight: false,
lightweight_port: 8081,
}
}
}
Expand Down
13 changes: 0 additions & 13 deletions src/lib/UI/Simulator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
];
if (simulatorOptions.lightweight) {
args.push("--lightweight");
args.push("--lightweight_port");
args.push(simulatorOptions.lightweight_port.toString());
}
command = simulatorOptions.unity
? Command.sidecar("simulator-unity", args)
Expand Down Expand Up @@ -111,17 +109,6 @@
<label for="lightweight">Lightweight mode:</label>
<CheckBox id="lightweight" bind:checked={simulatorOptions.lightweight} />

{#if simulatorOptions.lightweight}
<label for="lightweight_port">Lightweight port:</label>
<NumberInput
id="lightweight_port"
bind:value={simulatorOptions.lightweight_port}
min="0"
max="65535"
step="1"
/>
{/if}

<Button label="Run" click={handleRunClick} disabled={!!child} />
<Button label="Close" click={handleCloseClick} disabled={!child} />
</div>
Expand Down
1 change: 0 additions & 1 deletion src/lib/UI/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export interface SimulatorOptions {
window_height: number;
unity: boolean;
lightweight: boolean;
lightweight_port: number;
}

export interface Options {
Expand Down

0 comments on commit 2245b58

Please sign in to comment.