Skip to content

Clean up dataset generation script code - #171

Merged
thanglequoc merged 10 commits into
masterfrom
170_CleanUpDeadCode
Jul 12, 2026
Merged

Clean up dataset generation script code#171
thanglequoc merged 10 commits into
masterfrom
170_CleanUpDeadCode

Conversation

@thanglequoc

Copy link
Copy Markdown
Owner

Clean up dead code and unused referenced

- Clean up the old GIS data bootstrap code that use the API and response model from the past sapnhap bando site
The gis_comparator package was a one-time validation tool built March 2026
to verify the GIS data migration from the deprecated SAPNhap API. The
validation completed successfully (100% match). The package is not imported
by main.go and its SQL dump dependencies no longer exist.
The cmd/compare-gis CLI was the only consumer of the gis_comparator
package. Both the source and compiled binary are removed.
…ted/ directory

The feature doc documented a one-time validation tool that has been removed.
The exported/ directory only contained .DS_Store — the SQL dump files it
originally held were already deleted.
Remove dead code identified during systematic call-graph analysis:

- dvhcvn_model.go: Remove DvhcvnModel (legacy combined model) and
  DvhcvnDistrictModel structs — zero references in the codebase
- dvhcvn_parser.go: Remove toDvhcvnDistrictModel() and
  extractDistrictDvhcvnUnits() — the DanhMucQuanHuyen SOAP endpoint
  is never called by FetchDvhcvnData()
- data_downloader.go: Remove unused DVHCVN_SOAP_DANH_MUC_QUAN_HUYEN const
- testutil/: Delete entire package — TestFixtureLoader had zero imports
  from any package in the codebase
@thanglequoc thanglequoc self-assigned this Jul 11, 2026
@thanglequoc thanglequoc changed the title Clean up dead code Clean up dataset generation script code Jul 12, 2026
@thanglequoc
thanglequoc merged commit ed5e73e into master Jul 12, 2026
1 check passed
@thanglequoc
thanglequoc deleted the 170_CleanUpDeadCode branch July 12, 2026 13:34
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