Skip to content

Commit

Permalink
Bugfix and Console.WriteLine removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
jspuij committed Nov 13, 2019
1 parent 91ca8e2 commit 94b5f50
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions samples/Cortex.Net.BlazorTodo/Components/TodoItem.razor
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
/// Destroys the todo item.
/// </summary>
/// <param name="mouseEventArgs">The mouse event args.</param>
[Action]
void Destroy(MouseEventArgs mouseEventArgs)
{
this.Todo.Destroy();
Expand Down
1 change: 0 additions & 1 deletion samples/Cortex.Net.BlazorTodo/Models/Todo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public void Toggle()
/// <summary>
/// Destroys this todo by removing it from the Store.
/// </summary>
[Action]
public void Destroy()
{
this.Store.Todos.Remove(this);
Expand Down
1 change: 0 additions & 1 deletion samples/Cortex.Net.BlazorTodo/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
/// </summary>
protected override void OnInitialized()
{
Console.WriteLine("Initialized");
NavigationManager.LocationChanged += OnLocationChanged;
}

Expand Down
6 changes: 0 additions & 6 deletions src/Cortex.Net.Fody/BlazorObserverWeaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,6 @@ private void WeaveBuildRenderTreeMethod(MethodDefinition buildRenderTreeMethod,
processor.Create(OpCodes.Ldc_I4_1),
processor.Create(OpCodes.Bne_Un_S, originalStart),

// write the name of the function to the console.
processor.Create(OpCodes.Ldarg_0),
processor.Create(OpCodes.Call, module.ImportReference(getTypeReference)),
processor.Create(OpCodes.Callvirt, module.ImportReference(getFullNameReference)),
processor.Create(OpCodes.Call, module.ImportReference(writeLineReference)),

// load the field where the action delegate is stored.
processor.Create(OpCodes.Ldarg_0),
processor.Create(OpCodes.Ldfld, observerObjectDefinition),
Expand Down

0 comments on commit 94b5f50

Please sign in to comment.