Skip to content

Commit

Permalink
Removes dead code (CleverRaven#70346)
Browse files Browse the repository at this point in the history
* Remove dead code

* Fix comment

---------

Co-authored-by: Fris0uman <[email protected]>
  • Loading branch information
Fris0uman and Fris0uman authored Dec 22, 2023
1 parent c390b86 commit 4d710e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
7 changes: 0 additions & 7 deletions data/raw/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1737,13 +1737,6 @@
"name": "Plug in appliance",
"bindings": [ { "input_method": "keyboard_any", "key": "g" } ]
},
{
"type": "keybinding",
"id": "UNPLUG",
"category": "APP_INTERACT",
"name": "Unplug power connections",
"bindings": [ { "input_method": "keyboard_any", "key": "u" } ]
},
{
"type": "keybinding",
"id": "MERGE",
Expand Down
1 change: 0 additions & 1 deletion src/veh_appliance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ veh_app_interact::veh_app_interact( vehicle &veh, const point &p )
ctxt.register_action( "SIPHON" );
ctxt.register_action( "RENAME" );
ctxt.register_action( "REMOVE" );
ctxt.register_action( "UNPLUG" );
ctxt.register_action( "MERGE" );
}

Expand Down
6 changes: 3 additions & 3 deletions src/veh_appliance.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ class veh_app_interact
*/
bool can_siphon();
/**
* Checks whether the current appliance has any power connections that
* can be disconnected by the player.
* @returns True if the appliance can be unplugged.
* Checks whether the current appliance is power storage
* or powergen or a cable and can thus be merged into a powergrid.
* @returns True if the appliance can be merged.
*/
bool can_merge();
/**
Expand Down

0 comments on commit 4d710e5

Please sign in to comment.