8000 chore(compute): remove unused region tags (#10043) · rebeccaellis/java-docs-samples@994ef65 · GitHub
[go: up one dir, main page]

Skip to content

Commit 994ef65

Browse files
chore(compute): remove unused region tags (GoogleCloudPlatform#10043)
1 parent 81d1819 commit 994ef65

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

compute/cmdline/src/main/java/ComputeEngineSample.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ public static void main(String[] args) {
128128
System.exit(1);
129129
}
130130

131-
// [START list_instances]
132131
/**
133132
* Print available machine instances.
134133
*
@@ -154,10 +153,8 @@ public static boolean printInstances(Compute compute) throws IOException {
154153
}
155154
return found;
156155
}
157-
// [END list_instances]
158156

159157
// [START compute_create_instance]
160-
// [START create_instances]
161158
public static Operation startInstance(Compute compute, String instanceName) throws IOException {
162159
System.out.println("================== Starting New Instance ==================");
163160

@@ -226,7 +223,7 @@ public static Operation startInstance(Compute compute, String instanceName) thro
226223
Compute.Instances.Insert insert = compute.instances().insert(PROJECT_ID, ZONE_NAME, instance);
227224
return insert.execute();
228225
}
229-
// [END create_instances]
226+
230227
// [END compute_create_instance]
231228

232229
private static Operation deleteInstance(Compute compute, String instanceName) throws Exception {
@@ -246,7 +243,6 @@ public static String getLastWordFromUrl(String url) {
246243
}
247244

248245
// [START compute_wait_for_operation]
249-
// [START wait_until_complete]
250246
/**
251247
* Wait until {@code operation} is completed.
252248
*
@@ -288,6 +284,5 @@ public static Operation.Error blockUntilComplete(
288284
}
289285
return operation == null ? null : operation.getError();
290286
}
291-
// [END wait_until_complete]
292287
// [END compute_wait_for_operation]
293288
}

0 commit comments

Comments
 (0)
0