Skip to content

Commit

Permalink
removed obsolete logging methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffward01 committed Nov 22, 2022
1 parent f22cc0b commit 37035f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ bld/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# Rider files
.idea/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
Expand Down Expand Up @@ -213,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 37035f6

Please sign in to comment.