Skip to content

Remove 30 unused model classes from Data/#322

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/find-unused-models
Draft

Remove 30 unused model classes from Data/#322
Copilot wants to merge 2 commits intomainfrom
copilot/find-unused-models

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 2, 2026

Scanned all ~2,900 model classes in Meraki.Api/Data/ and removed 30 that have zero references anywhere in the codebase — not in interfaces, sections, tests, or other models.

Removed models

ClientAccess, DenyOnlyPolicy, DeviceForUnsettingTheSwitchProfileId, DeviceUpdateRequest, DeviceUplink, FirmwareUpgradesRollback, FloorPlanBatchDevicesUpdateRequestAssignmentFloorPlan, Layer7RuleType, LicenseClaim, LinkLayerNodeDiscoveredCdp, LiveToolsThroughputTestCallbackPayload, LockNetworkSmDevices, NetworkVlanEnabledStatus, NetworksCampusGatewayClusterDeviceIPAddressWithGateway, OrganizationConfigTemplatesSwitchProfilesPortsMirrorUpdateResponseConfigTemplate, OrganizationLicensing, OrganizationWirelessDevicesRadsecCertificateAuthority, OrganizationWirelessDevicesRadsecCertificateAuthorityUpdateRequest, SensorGatewayConnectionsLatest, SensorMetricDownstreamPowerState, SensorMetricPowerApparent, SensorMetricPowerReal, SmAppPolarisCreationRequest, SmAppPolarisUpdateRequest, SmDevicesTagsUpdateRequest, SwitchPortsTopologyDiscoveryByDeviceItemPortLldp, ThirdPartyVpnPeersUpdateRequest, UrlObject, WanTrafficUplinkPreferencesUpdateRequest, WarmSpareSettingsUpdateRequest

Notes

  • Detection method: extracted actual class name from each file (some filenames differ from class names) then searched for any reference outside the defining file
  • Most are stale request/update DTOs superseded by renamed equivalents, or orphaned nested models detached from their parent hierarchy
Original prompt

look for unused models that are not referenced anywhere

@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 2, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes. Give us feedback

Copilot AI changed the title [WIP] Identify and remove unused models Remove 30 unused model classes from Data/ Apr 2, 2026
Copilot AI requested a review from danielabbatt April 2, 2026 01:13
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