Skip to content

Remove dead code across frontend and backend#234

Open
christopherl wants to merge 1 commit into
xXJSONDeruloXx:mainfrom
christopherl:chore/remove-dead-code
Open

Remove dead code across frontend and backend#234
christopherl wants to merge 1 commit into
xXJSONDeruloXx:mainfrom
christopherl:chore/remove-dead-code

Conversation

@christopherl
Copy link
Copy Markdown

Housekeeping pass to remove code that became unreachable over time as the config API evolved.

  • Removed the TypeScript ConfigurationManager class — it wrapped backend methods (get_configuration, reset_configuration) that were never implemented. The only thing actually used was getDefaults(), which is now imported directly.
  • Removed the Python update_config(**kwargs) path and its helper create_config_from_args — all config updates go through update_config_from_dict instead. (The old path also had a double @staticmethod decorator that would have crashed if called.)
  • Deleted configuration_helpers_generated.py entirely — none of its functions were ever wired up.
  • Cleaned up the code generator to stop producing the removed functions.
  • Removed an unused config prop from UsageInstructions.

No behavior changes — just 338 fewer lines to wonder about.

- Remove TS ConfigurationManager class in configSchema.ts (called
  non-existent backend methods; only getDefaults() was used, replaced
  with direct import)
- Remove Python update_config method and create_config_from_args (unreachable
  since plugin.py routes through update_config_from_dict; also carried a
  duplicate @staticmethod that would crash at runtime)
- Delete configuration_helpers_generated.py entirely (all three functions
  were unused)
- Remove their generators from generate_python_boilerplate.py
- Remove dead generated code from config_schema_generated.py
  (create_config_dict, get_function_parameters, TOML_FIELDS, SCRIPT_FIELDS)
- Remove duplicate import in config_schema.py
- Remove unused config prop from UsageInstructions component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant