Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥 removing unused variables (batch 2) #2256

Merged
merged 5 commits into from
Jan 21, 2024
Merged

Conversation

MatissJanis
Copy link
Member

@MatissJanis MatissJanis commented Jan 20, 2024

Just removing some unused variables + unused code.

Closes #1907

Copy link

netlify bot commented Jan 20, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 2ea6b72
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/65ac4c7d0e6ca700080b4a7c
😎 Deploy Preview https://deploy-preview-2256.demo.actualbudget.org/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Jan 20, 2024

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
10 5.09 MB → 5.09 MB (-1.09 kB) -0.02%
Changeset
File Δ Size
src/components/budget/rollover/budgetsummary/BudgetSummary.tsx 📉 -1 B (-0.01%) 7.42 kB → 7.42 kB
src/components/FatalError.tsx 📉 -1 B (-0.02%) 6.32 kB → 6.32 kB
src/components/common/Menu.tsx 📉 -1 B (-0.02%) 4.47 kB → 4.47 kB
src/components/budget/index.tsx 📉 -5 B (-0.04%) 12.17 kB → 12.17 kB
src/components/modals/EditRule.jsx 📉 -12 B (-0.04%) 26.72 kB → 26.71 kB
src/components/modals/SingleInput.tsx 📉 -1 B (-0.04%) 2.19 kB → 2.19 kB
src/components/accounts/Account.jsx 📉 -19 B (-0.05%) 39.06 kB → 39.04 kB
src/components/budget/rollover/TransferTooltip.tsx 📉 -2 B (-0.07%) 2.65 kB → 2.65 kB
src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx 📉 -5 B (-0.08%) 6.27 kB → 6.26 kB
src/components/ManageRules.tsx 📉 -7 B (-0.08%) 8.36 kB → 8.36 kB
src/components/budget/SidebarCategory.tsx 📉 -5 B (-0.11%) 4.65 kB → 4.64 kB
src/components/budget/rollover/CoverTooltip.tsx 📉 -2 B (-0.12%) 1.6 kB → 1.6 kB
src/components/modals/CategoryGroupMenu.tsx 📉 -8 B (-0.13%) 6.03 kB → 6.02 kB
src/components/modals/CategoryMenu.tsx 📉 -8 B (-0.15%) 5.05 kB → 5.04 kB
src/components/reports/graphs/AreaGraph.tsx 📉 -12 B (-0.17%) 7.05 kB → 7.03 kB
src/components/reports/graphs/BarGraph.tsx 📉 -12 B (-0.17%) 6.85 kB → 6.84 kB
src/components/accounts/MobileAccount.jsx 📉 -11 B (-0.19%) 5.69 kB → 5.68 kB
src/components/reports/graphs/StackedBarGraph.tsx 📉 -12 B (-0.24%) 4.85 kB → 4.84 kB
src/components/reports/Header.jsx 📉 -13 B (-0.25%) 5.17 kB → 5.15 kB
src/components/reports/graphs/DonutGraph.tsx 📉 -12 B (-0.25%) 4.63 kB → 4.62 kB
src/components/budget/MobileBudgetTable.jsx 📉 -117 B (-0.31%) 37.16 kB → 37.05 kB
src/components/reports/graphs/tableGraph/ReportTableTotals.tsx 📉 -13 B (-0.35%) 3.64 kB → 3.63 kB
src/components/modals/Notes.tsx 📉 -8 B (-0.37%) 2.09 kB → 2.08 kB
src/components/reports/reports/CashFlow.tsx 📉 -29 B (-0.47%) 6.01 kB → 5.98 kB
src/components/budget/report/BalanceTooltip.tsx 📉 -4 B (-0.47%) 849 B → 845 B
src/components/reports/graphs/NetWorthGraph.tsx 📉 -27 B (-0.49%) 5.43 kB → 5.4 kB
src/components/reports/graphs/BarLineGraph.tsx 📉 -19 B (-0.49%) 3.8 kB → 3.78 kB
src/components/reports/graphs/LineGraph.tsx 📉 -19 B (-0.51%) 3.63 kB → 3.61 kB
src/components/reports/graphs/tableGraph/ReportTableHeader.tsx 📉 -13 B (-0.54%) 2.36 kB → 2.34 kB
src/components/reports/graphs/SankeyGraph.tsx 📉 -20 B (-0.59%) 3.33 kB → 3.31 kB
src/components/payees/ManagePayeesWithData.jsx 📉 -27 B (-0.67%) 3.91 kB → 3.88 kB
src/components/budget/SidebarGroup.tsx 📉 -39 B (-0.70%) 5.42 kB → 5.38 kB
src/browser-preload.browser.js 📉 -52 B (-1.48%) 3.43 kB → 3.38 kB
src/components/reports/ChooseGraph.tsx 📉 -59 B (-1.75%) 3.3 kB → 3.24 kB
src/components/budget/MobileBudget.tsx 📉 -219 B (-2.29%) 9.36 kB → 9.14 kB
src/components/FixedSizeList.tsx 📉 -307 B (-2.50%) 12 kB → 11.7 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/wide.js 239.01 kB → 239.36 kB (+360 B) +0.15%

Smaller

Asset File Size % Changed
static/js/index.js 2.64 MB → 2.64 MB (-863 B) -0.03%
static/js/narrow.js 82.17 kB → 81.84 kB (-347 B) -0.41%
static/js/ReportRouter.js 1.95 MB → 1.95 MB (-265 B) -0.01%
static/js/BalanceTooltip.js 6.07 kB → 6.06 kB (-6 B) -0.10%

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/ButtonLink.js 379 B 0%
static/js/FiltersMenu.js 28.92 kB 0%

Copy link
Contributor

github-actions bot commented Jan 20, 2024

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.24 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.24 MB 0%

carkom
carkom previously approved these changes Jan 20, 2024
groupBy={groupBy}
balanceType={balanceType}
compact={compact}
Copy link
Contributor

Choose a reason for hiding this comment

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

I just added these compact elements to this whole space for graph cards on saved reports on overview page. Can we comment them out rather than erasing them? This would be for all files under the "/components/reports" directory.

Copy link
Contributor

Choose a reason for hiding this comment

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

Added a new PR to fix these rather than commenting them out.
#2258

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. Added them back in.

@MatissJanis MatissJanis merged commit bb0ae4e into master Jan 21, 2024
19 checks passed
@MatissJanis MatissJanis deleted the matiss/unused-vars-2 branch January 21, 2024 14:55
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved labels Jan 21, 2024
FlorianLang06 pushed a commit to FlorianLang06/actual that referenced this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maintenance] Delete unused variables
3 participants