Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cleanup] Clean up warnings and unused code#535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ajmcquilkin wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromajmcquilkin/unused-code-cleanup

Conversation

@ajmcquilkin
Copy link
Member

This PR does the following:

  • Bumps the version of themeshtastic crate from0.1.6 to0.1.7
  • Cleans up all console-displayed errors when runningpnpm run ui:dev
  • Cleans up all console-displayed errors when runningpnpm run rust:dev

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This pull request fixes incorrect logical negation operations in state initialization across multiple configuration pages and updates dependencies. The main issue was that state variables intended to represent "disabled" or "enabled" states were incorrectly negating boolean values, which was further compounded by the nullish coalescing operator precedence.

Key changes:

  • Fixed boolean logic in state initialization for 11+ configuration pages by removing incorrect negation operators
  • Updated themeshtastic dependency from a Git reference to published version 0.1.7
  • Added explicit lifetime annotations to improve Rust code clarity
  • Removed unused code including helper functions, error variants, and imports

Reviewed Changes

Copilot reviewed 23 out of 24 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
TelemetryConfigPage.tsxRemoved incorrect negation operators fromairQualityDisabled andenvMeasurementDisabled state initialization
StoreAndForwardConfigPage.tsxFixedmoduleDisabled state initialization logic
SerialModuleConfigPage.tsxFixedmoduleDisabled state initialization logic
RemoteHardwareConfigPage.tsxUpdated commented-out code to reflect correct boolean logic
RangeTestConfigPage.tsxFixedmoduleDisabled state initialization logic
MQTTConfigPage.tsxFixedmoduleDisabled state initialization logic
ExternalNotificationConfigPage.tsxFixed three state initializations:moduleDisabled,bellAlertsDisabled, andmessageAlertsDisabled
CannedMessageConfigPage.tsxFixedmoduleDisabled state initialization logic
AudioConfigPage.tsxRemoved incorrect negation and extra parentheses fromcodec2Disabled state initialization
PositionConfigPage.tsxFixedgpsDisabled andfixedPositionDisabled state initialization logic
NetworkConfigPage.tsxRemoved incorrect negation and extra parentheses fromwifiDisabled andethDisabled
LoRaConfigPage.tsxChanged from negation to double negation for proper boolean coercion and removed unnecessary fallback
BluetoothConfigPage.tsxFixedbluetoothDisabled initialization and removed unnecessary fallback fromfixedPinDisabled
packet_api/mod.rsAdded explicit lifetime annotations toget_locked_graph method
packet_api/handlers/mod.rsRemoved unusedNotificationDispatchFailure error variant and its Display implementation
packet_api/handlers/mesh_packet/handlers.rsChanged toCopy semantics, updated from deprecatedfrom_i32 totry_from, removed unused notification code
lib.rsRemoved unused TypeScript export function and related imports
ipc/commands/radio.rsRemoved unused imports (events andtrace)
domains/mesh.rsRemoved unused imports
device/mod.rsUpdated from deprecatedfrom_i32 totry_from for enum conversions
device/helpers.rsRemoved unused helper functionsget_node_user_name andget_channel_name
api/primitives/radio.rsRemoved unused imports
Cargo.tomlUpdatedmeshtastic dependency from Git reference to published version 0.1.7 with reordered features
Cargo.lockUpdated dependency tree reflecting the newmeshtastic version and its transitive dependencies including newspecta versions

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

@ajmcquilkinajmcquilkinforce-pushed theajmcquilkin/unused-code-cleanup branch frome7c6f8c to79c2b55CompareNovember 2, 2025 06:12
Copy link
Collaborator

@matthewCmattmatthewCmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM! Fun to see you picking the project back up!

use tauri::Manager;
use tauri_plugin_log::{fern::colors::ColoredLevelConfig,Target,TargetKind};

fnexport_ts_types(file_path:&str) ->Result<(),TsExportError>{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Did your PR#533 fix#505? I left this here with the intention of re-enabling later, but I'm fine with removing this.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@matthewCmattmatthewCmattmatthewCmatt approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ajmcquilkin@matthewCmatt

[8]ページ先頭

©2009-2025 Movatter.jp