Skip to content

Commit

Permalink
Remove BoolParam
Browse files Browse the repository at this point in the history
Suprisingly, it seems we (no longer?) use it anywhere in URL params, so conversion is no longer necessary.
  • Loading branch information
RReverser committed Sep 20, 2024
1 parent 00804cf commit 17474ea
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 63 deletions.
9 changes: 1 addition & 8 deletions src/api/autogen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,7 @@ class TypeContext {
return rusty('String');
}
case 'boolean':
return rusty(
'bool',
this.method === 'GET' && this.baseKind === 'Request'
? 'BoolParam'
: undefined
);
return rusty('bool');
case 'object': {
return registerType(
this.device,
Expand Down Expand Up @@ -754,12 +749,10 @@ ${api.info.description}
#![allow(clippy::doc_markdown)]
mod bool_param;
mod devices_impl;
mod server_info;
mod time_repr;
use bool_param::BoolParam;
use crate::{ASCOMError, ASCOMResult};
use crate::macros::{rpc_mod, rpc_trait};
use crate::response::ValueResponse;
Expand Down
53 changes: 0 additions & 53 deletions src/api/bool_param.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ The SetupDialog method has been omitted from the Alpaca Device API because it pr

#![allow(clippy::doc_markdown)]

mod bool_param;
mod devices_impl;
mod server_info;
mod time_repr;

use crate::macros::{rpc_mod, rpc_trait};
use crate::response::ValueResponse;
use crate::{ASCOMError, ASCOMResult};
use bool_param::BoolParam;
use macro_rules_attribute::apply;
#[cfg_attr(not(feature = "all-devices"), allow(unused_imports))]
use num_enum::{IntoPrimitive, TryFromPrimitive};
Expand Down

0 comments on commit 17474ea

Please sign in to comment.