Skip to content

Commit b73ca7f

Browse files
authored
Remove superfluous empty lines (#9653)
* Remove superfluous empty lines * Remove some changes * Remove CFX and WebNet snippet changes
1 parent ff7f398 commit b73ca7f

File tree

55 files changed

+8
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+8
-111
lines changed

snippets/csharp/System.Diagnostics/CounterCreationData/Overview/averagecount32.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
//<snippet1>
2-
32
using System;
43
using System.Collections;
54
using System.Collections.Specialized;
65
using System.Diagnostics;
76

8-
public class App {
9-
7+
public class App
8+
{
109
private static PerformanceCounter avgCounter64Sample;
1110
private static PerformanceCounter avgCounter64SampleBase;
1211

1312
public static void Main()
1413
{
15-
1614
ArrayList samplesList = new ArrayList();
1715

1816
// If the category does not exist, create the category and exit.

snippets/csharp/System.Diagnostics/EventLog/GetEventLogs/source1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//<Snippet1>
2-
32
using System;
43
using System.Diagnostics;
54
using System.Globalization;

snippets/csharp/System.Diagnostics/PerformanceCounter/NextValue/elapsedtime.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class App
1616
{
1717
private static PerformanceCounter PC;
1818

19-
2019
public static void Main()
2120
{
2221
ArrayList samplesList = new ArrayList();
@@ -26,12 +25,10 @@ public static void Main()
2625
CollectSamples(samplesList);
2726
}
2827

29-
3028
private static bool SetupCategory()
3129
{
3230
if ( !PerformanceCounterCategory.Exists("ElapsedTimeSampleCategory") )
3331
{
34-
3532
CounterCreationDataCollection CCDC = new CounterCreationDataCollection();
3633

3734
// Add the counter.
@@ -60,12 +57,10 @@ private static void CreateCounters()
6057
PC = new PerformanceCounter("ElapsedTimeSampleCategory",
6158
"ElapsedTimeSample",
6259
false);
63-
6460
}
6561

6662
private static void CollectSamples(ArrayList samplesList)
6763
{
68-
6964
long pcValue;
7065
DateTime Start;
7166

@@ -98,7 +93,6 @@ private static void CollectSamples(ArrayList samplesList)
9893

9994
Console.WriteLine("Elapsed time = " + DateTime.Now.Subtract(Start).ToString());
10095
}
101-
10296

10397
private static void OutputSample(CounterSample s)
10498
{
@@ -115,7 +109,6 @@ private static void OutputSample(CounterSample s)
115109
Console.WriteLine("++++++++++++++++++++++");
116110
}
117111

118-
119112
// Reads the counter information to enable setting the RawValue.
120113
[DllImport("Kernel32.dll")]
121114
public static extern bool QueryPerformanceCounter(out long value);
@@ -126,7 +119,6 @@ private static void OutputSample(CounterSample s)
126119
// Build sample for Whidbey or higher.
127120

128121
//<Snippet2>
129-
130122
using System;
131123
using System.Collections;
132124
using System.Collections.Specialized;
@@ -135,7 +127,6 @@ private static void OutputSample(CounterSample s)
135127

136128
public class App
137129
{
138-
139130
public static void Main()
140131
{
141132
CollectSamples();

snippets/csharp/System.Diagnostics/Process/StandardInput/process_standardinput.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// The sort command results are displayed to the user on the console.
99

1010
// <Snippet1>
11-
1211
using System;
1312
using System.IO;
1413
using System.Diagnostics;

snippets/csharp/System.Drawing/Graphics/CopyFromScreen/Form1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//<snippet1>
2-
32
using System;
43
using System.Windows.Forms;
54
using System.Drawing;

snippets/csharp/System.IO/FileInfo/MoveTo/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//<SNIPPET1>
2-
32
using System;
43
using System.Runtime.CompilerServices;
54
using System.Runtime.InteropServices;
@@ -12,7 +11,6 @@
1211

1312
namespace Microsoft.Samples.MoveTo.CS
1413
{
15-
1614
class Program
1715
{
1816
private static string sourcePath = Environment.GetFolderPath

snippets/csharp/System.Messaging/MessageQueue/.ctor/class11.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

@@ -38,5 +37,4 @@ public static void UseQueue()
3837
// </snippet1>
3938
}
4039
}
41-
4240
// </snippet0>

snippets/csharp/System.Messaging/MessageQueue/BeginPeek/class1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

snippets/csharp/System.Messaging/MessageQueuePermissionAccess/Overview/class1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

snippets/csharp/System.Messaging/MessageQueuePermissionEntry/Overview/class1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

0 commit comments

Comments
 (0)