Skip to content

Commit 11d3628

Browse files
Removed AppInsights
1 parent 8fd55cd commit 11d3628

29 files changed

+2
-166
lines changed

src/WebCompiler/Config/ConfigFileProcessor.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private IEnumerable<CompilerResult> SourceFileChanged(string configFile,
123123

124124
//compile files that are dependent on the current file
125125
var dependencies = DependencyService.GetDependencies(projectPath, sourceFile);
126-
if(dependencies != null)
126+
if (dependencies != null)
127127
{
128128
string key = sourceFile.ToLowerInvariant();
129129

@@ -179,9 +179,8 @@ public static IEnumerable<Config> IsFileConfigured(string configFile, string sou
179179

180180
return list;
181181
}
182-
catch (Exception ex)
182+
catch (Exception)
183183
{
184-
Telemetry.TrackException(ex);
185184
return null;
186185
}
187186
}
@@ -240,8 +239,6 @@ private CompilerResult ProcessConfig(string baseFolder, Config config)
240239
OnAfterWritingSourceMap(absolute, mapFile, smChanges);
241240
}
242241

243-
Telemetry.TrackCompile(config);
244-
245242
return result;
246243
}
247244

src/WebCompiler/MSBuild/CompilerBuildTask.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public override bool Execute()
2929
}
3030

3131
Log.LogMessage(MessageImportance.High, Environment.NewLine + "WebCompiler: Begin compiling " + configFile.Name);
32-
Telemetry.SetDeviceName("MSBuild");
3332

3433
ConfigFileProcessor processor = new ConfigFileProcessor();
3534
processor.BeforeProcess += (s, e) => { if (e.ContainsChanges) FileHelpers.RemoveReadonlyFlagFromFile(e.Config.GetAbsoluteOutputFile()); };
@@ -68,7 +67,6 @@ public override bool Execute()
6867
catch (Exception ex)
6968
{
7069
Log.LogError(ex.Message);
71-
Telemetry.TrackException(ex);
7270
return false;
7371
}
7472
}

src/WebCompiler/MSBuild/CompilerCleanTask.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public override bool Execute()
2929
}
3030

3131
Log.LogMessage(MessageImportance.High, Environment.NewLine + "WebCompiler: Begin cleaning output of " + configFile.Name);
32-
Telemetry.SetDeviceName("MSBuild");
3332

3433
try
3534
{
@@ -43,7 +42,6 @@ public override bool Execute()
4342
catch (Exception ex)
4443
{
4544
Log.LogError(ex.Message);
46-
Telemetry.TrackException(ex);
4745
return false;
4846
}
4947
}

src/WebCompiler/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ static int Main(params string[] args)
1919
return 0;
2020
}
2121

22-
Telemetry.SetDeviceName("Command line");
23-
2422
ConfigFileProcessor processor = new ConfigFileProcessor();
2523
EventHookups(processor, configPath);
2624

src/WebCompiler/Telemetry.cs

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/WebCompiler/WebCompiler.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
<HintPath>..\..\packages\AjaxMin.5.14.5506.26202\lib\net40\AjaxMin.dll</HintPath>
4343
<Private>True</Private>
4444
</Reference>
45-
<Reference Include="Microsoft.ApplicationInsights, Version=1.2.0.5639, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
46-
<HintPath>..\..\packages\Microsoft.ApplicationInsights.1.2.0\lib\net45\Microsoft.ApplicationInsights.dll</HintPath>
47-
<Private>True</Private>
48-
</Reference>
4945
<Reference Include="Microsoft.Build.Framework" />
5046
<Reference Include="Microsoft.Build.Tasks.v4.0" />
5147
<Reference Include="Microsoft.Build.Utilities.v4.0" />
@@ -102,7 +98,6 @@
10298
<Compile Include="Config\ConfigHandler.cs" />
10399
<Compile Include="Config\ConfigFileProcessor.cs" />
104100
<Compile Include="Properties\AssemblyInfo.cs" />
105-
<Compile Include="Telemetry.cs" />
106101
</ItemGroup>
107102
<ItemGroup>
108103
<None Include="MSBuild\BuildWebCompiler.nuspec">

src/WebCompiler/packages.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="AjaxMin" version="5.14.5506.26202" targetFramework="net45" />
4-
<package id="Microsoft.ApplicationInsights" version="1.2.0" targetFramework="net45" />
54
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
65
<package id="NuGet.CommandLine" version="2.8.5" targetFramework="net45" />
76
</packages>

src/WebCompilerTest/AssemblyLoad.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/WebCompilerTest/Compile/BabelTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class BabelTest
1313
[TestInitialize]
1414
public void Setup()
1515
{
16-
Telemetry.Enabled = false;
1716
_processor = new ConfigFileProcessor();
1817
}
1918

src/WebCompilerTest/Compile/CoffeeScriptTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class CoffeeScriptTest
1313
[TestInitialize]
1414
public void Setup()
1515
{
16-
Telemetry.Enabled = false;
1716
_processor = new ConfigFileProcessor();
1817
}
1918

0 commit comments

Comments
 (0)