Code inspection: Local function is never usedLast modified: 08 April 2024Category: Redundancies in Symbol DeclarationsID: UnusedLocalFunctionEditorConfig: resharper_unused_local_function_highlighting=[error|warning|suggestion|hint|none]Default severity: WarningLanguage: C#Requires SWA: NotipYou can suppress this inspection to ignore specific issues, change its severity level to make the issues less or more noticeable, or disable it altogether.ReSharper suggests removing unused local functions to clear up the code. You can remove such a function with a quick-fix or write the code that uses it.Suboptimal codepublic int MyMethod(){ int Sum(int x, int y) { return x + y; } return 42;}After the quick-fixpublic int MyMethod(){ return 42;}