-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Labels
adjustments requiredAn issue require some adjustments in codeAn issue require some adjustments in codecode cleanupRefactor code, remove old code, improve maintainabilityRefactor code, remove old code, improve maintainabilitytechnicalTasks that need to be performed in order to improve quality and maintainabilityTasks that need to be performed in order to improve quality and maintainability
Milestone
Description
In the current code, there are a lot of such constructs:
#if DEBUG
if (debug)
Log._Debug("Whatever");
#endif
They are sometimes repeated very often, after each line (e.g. JunctionRestrictionsManager.cs).
It's almost impossible to read and to understand code like that.
Suggested improvements:
- The
Log._Debugmethod already has the[Conditional("DEBUG")]attribute, so no need in#if DEBUG / #endifregion at all - The
if (debug)check can actually be transferred into theLog._Debugmethod
After those improvements, the logging code becomes as simple as that:
Log._Debug("Whatever");
It will make the code much more readable and won't affect performance.
CosignCosine and originalfooVictorPhilipp
Metadata
Metadata
Assignees
Labels
adjustments requiredAn issue require some adjustments in codeAn issue require some adjustments in codecode cleanupRefactor code, remove old code, improve maintainabilityRefactor code, remove old code, improve maintainabilitytechnicalTasks that need to be performed in order to improve quality and maintainabilityTasks that need to be performed in order to improve quality and maintainability