Skip to content

Commit e065745

Browse files
authored
Removed Unused Snippets from Code. (#22859)
1 parent a7974bf commit e065745

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_MultipleInputs.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public void MultipleInputs()
2222

2323
var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));
2424

25-
#region Snippet:MultipleInputs
2625
Uri source1SasUriUri = new Uri("<source1 SAS URI>");
2726
Uri source2SasUri = new Uri("<source2 SAS URI>");
2827
Uri frenchTargetSasUri = new Uri("<french target SAS URI>");
@@ -92,8 +91,6 @@ public void MultipleInputs()
9291
Console.WriteLine($" Message: {document.Error.Message}");
9392
}
9493
}
95-
96-
#endregion
9794
}
9895
}
9996
}

sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_OperationsHistory.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ public void OperationsHistory()
2020

2121
var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));
2222

23-
#region Snippet:OperationsHistory
24-
2523
int operationsCount = 0;
2624
int totalDocs = 0;
2725
int docsCancelled = 0;
@@ -61,8 +59,6 @@ public void OperationsHistory()
6159
Console.WriteLine($"Succeeded Document: {docsSucceeded}");
6260
Console.WriteLine($"Failed Document: {docsFailed}");
6361
Console.WriteLine($"Cancelled Documents: {docsCancelled}");
64-
65-
#endregion
6662
}
6763
}
6864
}

sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_PollIndividualDocuments.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public void PollIndividualDocuments()
2121

2222
var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));
2323

24-
#region Snippet:PollIndividualDocuments
2524
Uri sourceUri = new Uri("<source SAS URI>");
2625
Uri targetUri = new Uri("<target SAS URI>");
2726

@@ -61,8 +60,6 @@ public void PollIndividualDocuments()
6160
Console.WriteLine($" Message: {document.Error.Message}");
6261
}
6362
}
64-
65-
#endregion
6663
}
6764
}
6865
}

sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslationWithAzureBlob.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ This sample demonstrates how to use Azure Blob Storage to set up the necessary r
5050

5151
var client = new DocumentTranslationClient(new Uri(endpoint), new AzureKeyCredential(apiKey));
5252

53-
#region Snippet:StartTranslationWithAzureBlobAsync
5453
Uri storageEndpoint = new Uri(Environment.GetEnvironmentVariable("AZURE_STORAGE_SOURCE_ENDPOINT"));
5554
string storageAccountName = Environment.GetEnvironmentVariable("AZURE_STORAGE_ACCOUNT_NAME");
5655
string storageAccountKey = Environment.GetEnvironmentVariable("AZURE_STORAGE_SOURCE_KEY");
@@ -108,8 +107,6 @@ This sample demonstrates how to use Azure Blob Storage to set up the necessary r
108107
Console.WriteLine($"Document ID: {document.Id}, Error Code: {document.Error.ErrorCode}, Message: {document.Error.Message}");
109108
}
110109
}
111-
112-
#endregion
113110
}
114111
}
115112
}

0 commit comments

Comments
 (0)