Skip to content

Commit

Permalink
Merge pull request #107 from jeffward01/remove-obsolete-log-methods
Browse files Browse the repository at this point in the history
removed obsolete logging methods
  • Loading branch information
Ralf1108 authored Mar 6, 2023
2 parents 2403496 + 37035f6 commit b59e670
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@ FakesAssemblies/
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
_Pvt_Extensions
11 changes: 0 additions & 11 deletions src/MethodBoundaryAspect.Fody/ModuleWeaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class ModuleWeaver : BaseModuleWeaver

public ModuleWeaver()
{
InitLogging();
}

public bool DisableCompileTimeMethodInfos { get; set; }
Expand Down Expand Up @@ -132,16 +131,6 @@ public void AddPropertyFilter(string propertyFilter)
PropertyFilter.Add(propertyFilter);
}

private void InitLogging()
{
LogDebug = m => Debug.WriteLine(m);
LogInfo = LogDebug;
LogWarning = LogDebug;
LogWarningPoint = (m, p) => { };
LogError = LogDebug;
LogErrorPoint = (m, p) => { };
}

private void Execute(ModuleDefinition module)
{
_methodInfoCompileTimeWeaver = new MethodInfoCompileTimeWeaver(module)
Expand Down

0 comments on commit b59e670

Please sign in to comment.