Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeltrao committed Feb 18, 2020
1 parent 696092a commit c6e0e95
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 115 deletions.
2 changes: 0 additions & 2 deletions src/Sample.Common/CloudRoleTelemetryInitializer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Diagnostics;
using System.Reflection;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;

namespace Sample.Common
Expand Down
3 changes: 1 addition & 2 deletions src/Sample.Common/ConfigurationExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace Sample.Common
Expand Down
3 changes: 1 addition & 2 deletions src/Sample.Common/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
namespace Sample.Common
namespace Sample.Common
{
public static class Constants
{
Expand Down
8 changes: 1 addition & 7 deletions src/Sample.Common/EnqueuedMessage.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
using System;
//using Newtonsoft.Json;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;

namespace Sample.Common
{
public class EnqueuedMessage
{
[JsonPropertyName("day")]
//[JsonProperty("day", NullValueHandling = NullValueHandling.Ignore)]
public string Day { get; set; }

//[JsonProperty("eventName", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("eventName")]
public string EventName { get; set; }

//[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("source")]
public string Source { get; set; }

Expand Down
3 changes: 1 addition & 2 deletions src/Sample.Common/OpenTelemetryExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace;

namespace Sample.Common
{
Expand Down
82 changes: 0 additions & 82 deletions src/Sample.Common/TraceParent.cs

This file was deleted.

2 changes: 0 additions & 2 deletions src/Sample.MainApi/Metrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Metrics;
using Microsoft.Extensions.DependencyInjection;
using OpenTelemetry.Exporter.Prometheus;
using OpenTelemetry.Metrics;
using OpenTelemetry.Metrics.Configuration;
using OpenTelemetry.Metrics.Export;
using OpenTelemetry.Trace;
using Sample.Common;

Expand Down
7 changes: 0 additions & 7 deletions src/Sample.MainApi/Program.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Sample.Common;

namespace Sample.MainApi
Expand Down
4 changes: 0 additions & 4 deletions src/Sample.MainApi/RabbitMQProducer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
using RabbitMQ.Client;
using Sample.Common;
using Sample.RabbitMQCollector;

namespace Sample.MainApi
{
Expand Down
1 change: 0 additions & 1 deletion src/Sample.RabbitMQCollector/TraceParent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Diagnostics;
using System.Linq;

namespace Sample.RabbitMQCollector
{
Expand Down
3 changes: 1 addition & 2 deletions src/Sample.RabbitMQProcessor/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Diagnostics;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Sample.Common;
Expand Down
2 changes: 0 additions & 2 deletions src/Sample.RabbitMQProcessor/WebQueueConsumerHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using RabbitMQ.Client.Events;
using Microsoft.Extensions.DependencyInjection;
using Sample.Common;
using System.Diagnostics;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
Expand All @@ -18,7 +17,6 @@
using Microsoft.Extensions.Options;
using RabbitMQ.Client.Exceptions;
using Sample.RabbitMQCollector;
using System.Collections.Generic;

namespace Sample.RabbitMQProcessor
{
Expand Down

0 comments on commit c6e0e95

Please sign in to comment.