Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 43fc02b

Browse files
committed
Not the best idea
1 parent fee1aa8 commit 43fc02b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/ExampleRunner/Program.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class Program
2020
static int Main(string[] args)
2121
{
2222
Initialize();
23-
Pristine(args);
2423
EnsureExamplesDirectory();
2524
GenerateDocumentation();
2625
RunAllExamples();
@@ -45,21 +44,6 @@ static void Initialize()
4544
.CreateLogger();
4645
}
4746

48-
static void Pristine(string[] args)
49-
{
50-
if (args.All(a => a.TrimStart('/', '-').ToLowerInvariant() != "pristine"))
51-
return;
52-
53-
using (var manager = new ServerManager())
54-
{
55-
var sites = manager.Sites.ToList();
56-
foreach (var site in sites) manager.Sites.Remove(site);
57-
var pools = manager.ApplicationPools.ToList();
58-
foreach (var pool in pools) manager.ApplicationPools.Remove(pool);
59-
manager.CommitChanges();
60-
}
61-
}
62-
6347
static void EnsureExamplesDirectory()
6448
{
6549
if (!Directory.Exists(ExamplesDirectory))

0 commit comments

Comments
 (0)