Skip to content

Commit 35e5a99

Browse files
authored
Removed unused variable from code snippets (#4947)
1 parent 8fcb525 commit 35e5a99

File tree

2 files changed

+1
-3
lines changed
  • samples/snippets
    • csharp/VS_Snippets_CLR_System/system.tuple`2.equals/cs
    • visualbasic/VS_Snippets_CLR_System/system.tuple`2.equals/vb

2 files changed

+1
-3
lines changed

samples/snippets/csharp/VS_Snippets_CLR_System/system.tuple`2.equals/cs/equals1.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public static void Main()
1616
// Compare the Tuple objects
1717
for (int ctr = 0; ctr < scores.Length; ctr++)
1818
{
19-
Tuple<string, Nullable<int>> currentTuple = scores[ctr];
2019
for (int innerCtr = ctr + 1; innerCtr < scores.Length; innerCtr++)
2120
{
2221
Console.WriteLine("{0} = {1}: {2}",
@@ -47,4 +46,4 @@ public static void Main()
4746
// (Ernie, ) = (Dan, 90): False
4847
//
4948
// (Nancy, 88) = (Dan, 90): False
50-
// </Snippet1>
49+
// </Snippet1>

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.tuple`2.equals/vb/equals1.vb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Module Example
1414

1515
' Compare the Tuple objects
1616
For ctr As Integer = 0 To scores.Length - 1
17-
Dim currentTuple As Tuple(Of String, Nullable(Of Integer)) = scores(ctr)
1817
For innerCtr As Integer = ctr + 1 To scores.Length - 1
1918
Console.WriteLine("{0} = {1}: {2}",
2019
scores(ctr), scores(innerCtr),

0 commit comments

Comments
 (0)