Skip to content

chore(weather-widget): remove unused code#2151

Merged
alandtse merged 6 commits into
community-shaders:devfrom
SkrubbySkrubInAShrub:chore/weatherwidget-imagespace-deadcode-cleanup-pr
Apr 19, 2026
Merged

chore(weather-widget): remove unused code#2151
alandtse merged 6 commits into
community-shaders:devfrom
SkrubbySkrubInAShrub:chore/weatherwidget-imagespace-deadcode-cleanup-pr

Conversation

@SkrubbySkrubInAShrub
Copy link
Copy Markdown
Collaborator

@SkrubbySkrubInAShrub SkrubbySkrubInAShrub commented Apr 19, 2026

removed leftover code that was never removed since the design stage.

Summary by CodeRabbit

  • Refactor
    • Simplified weather settings structure by removing per-time-of-day image-space parameters (HDR, cinematic, tint, and depth-of-field settings) from the weather widget configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 19, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d4d15ab3-9232-4114-8dd8-9508148f6c4d

📥 Commits

Reviewing files that changed from the base of the PR and between 31a7b55 and f34f7a7.

📒 Files selected for processing (2)
  • src/WeatherEditor/Weather/WeatherWidget.cpp
  • src/WeatherEditor/Weather/WeatherWidget.h
💤 Files with no reviewable changes (2)
  • src/WeatherEditor/Weather/WeatherWidget.h
  • src/WeatherEditor/Weather/WeatherWidget.cpp

📝 Walkthrough

Walkthrough

The PR removes image-space settings functionality from the WeatherWidget, including the ImageSpaceSettings struct definition, JSON serialization bindings, the imageSpaces member variable, and updates the equality operator to exclude image-space comparisons.

Changes

Cohort / File(s) Summary
ImageSpaceSettings Removal
src/WeatherEditor/Weather/WeatherWidget.h
Deleted ImageSpaceSettings struct definition and removed Settings::imageSpaces member array.
Serialization & Equality Updates
src/WeatherEditor/Weather/WeatherWidget.cpp
Removed NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE binding for ImageSpaceSettings and updated Settings::operator== to exclude imageSpaces comparison.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • doodlum
  • davo0411

Poem

🐰 Image spaces fade away,
No more HDR tints to say,
Settings lean and trim so bright,
WeatherWidget feels just right! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing unused ImageSpaceSettings code from the weather widget that was leftover from the design stage.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SkrubbySkrubInAShrub SkrubbySkrubInAShrub changed the title chore(weather-widget): Remove unused code chore(weather-widget): remove unused code Apr 19, 2026
@github-actions
Copy link
Copy Markdown

No actionable suggestions for changed features.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 19, 2026

✅ A pre-release build is available for this PR:
Download

@alandtse alandtse merged commit 2d5f767 into community-shaders:dev Apr 19, 2026
15 checks passed
InTheBottle added a commit to InTheBottle/skyrim-community-shaders that referenced this pull request Apr 21, 2026
Reverts upstream PRs community-shaders#2151, community-shaders#2152, community-shaders#2154 which removed the inline ImageSpaceSettings struct from WeatherWidget and replaced HDR/bloom/cinematic/tint/DoF inline storage with TESImageSpace form pickers.

These changes broke existing per-weather edits saved in user JSON files (old 'imageSpaces' array key is silently ignored by the new loader, and SetWeatherValues unconditionally overwrites weather->imageSpaces[] with possibly-null form pointers from missing keys).

Restoring the old behavior on the fork pending a forward-compatible migration.
ParticleTroned pushed a commit to ParticleTroned/skyrim-community-shaders that referenced this pull request May 2, 2026
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.

2 participants