---
schema_version: "1"
id: d8f7a387dff5d2102cca01acc9deb098d4c87a7626aa99cb2329c3e0234cb8d7
title: "ApexGuru Antipattern: Unused Methods"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/apexguru_antipattern_unused_classes_and_methods.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.apexguru_antipattern_unused_classes_and_methods.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fb1303a9b330ce0e7c90d989fb330983593fe825aff6c2fc545767fafd0ec6a0
description: Unused Apex methods contribute to code bloat and increase the cognitive load for developers. These pieces of code make it harder to maintain the system and can also increase the size of the deployment package, making it more difficult to stay within the Salesforce Apex code size limits. Identify and remove unused methods to improve code clarity and performance.
products:
  - Cross Cloud
release: "264"
---
# ApexGuru Antipattern: Unused Methods

Unused Apex methods contribute to code bloat and increase the cognitive load for developers. These pieces of code make it harder to maintain the system and can also increase the size of the deployment package, making it more difficult to stay within the Salesforce Apex code size limits. Identify and remove unused methods to improve code clarity and performance.

## Scope

Detection only

#### See Also

- [Limitation: ApexGuru "Unused Methods"](https://help.salesforce.com/s/articleView?id=005132418&type=1&language=en_US)
- [Apex Governor Limits in the Salesforce Developer Limits and Allocations Quick Reference](https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm)