@@ -57,8 +57,6 @@ Status ConnectionGenerator::GenerateHeader() {
5757 {vars (" idempotency_policy_header_path" ), vars (" retry_traits_header_path" ),
5858 HasLongrunningMethod () ? " google/cloud/no_await_tag.h" : " " ,
5959 IsExperimental () ? " google/cloud/experimental_tag.h" : " " ,
60- HasEmitCompletionQueueAccessor () ? " google/cloud/completion_queue.h"
61- : " " ,
6260 " google/cloud/backoff_policy.h" ,
6361 HasLongrunningMethod () || HasAsyncMethod () ? " google/cloud/future.h"
6462 : " " ,
@@ -93,21 +91,7 @@ Status ConnectionGenerator::GenerateHeader() {
9391 }
9492 }
9593
96- Status result;
97- if (HasEmitCompletionQueueAccessor ()) {
98- result = HeaderOpenNamespaces ();
99- if (!result.ok ()) return result;
100- HeaderPrint (R"""( class $connection_class_name$;)""" );
101- HeaderCloseNamespaces ();
102-
103- result = HeaderOpenNamespaces (NamespaceType::kInternal );
104- if (!result.ok ()) return result;
105- HeaderPrint (
106- R"""( StatusOr<CompletionQueue> completion_queue($product_namespace$::$connection_class_name$ const& conn);)""" );
107- HeaderCloseNamespaces ();
108- }
109-
110- result = HeaderOpenNamespaces ();
94+ auto result = HeaderOpenNamespaces ();
11195 if (!result.ok ()) return result;
11296
11397 HeaderPrint (R"""(
@@ -331,13 +315,6 @@ class $connection_class_name$ {
331315 __FILE__, __LINE__);
332316 }
333317
334- if (HasEmitCompletionQueueAccessor ()) {
335- HeaderPrint (R"""( protected:
336- friend StatusOr<CompletionQueue> $product_internal_namespace$::completion_queue(
337- $connection_class_name$ const& conn);
338- virtual StatusOr<CompletionQueue> completion_queue() const;
339- )""" );
340- }
341318 // close abstract interface Connection base class
342319 HeaderPrint (" };\n " );
343320
@@ -513,15 +490,6 @@ future<StatusOr<$response_type$>>
513490 __FILE__, __LINE__);
514491 }
515492
516- if (HasEmitCompletionQueueAccessor ()) {
517- CcPrint (
518- R"""(
519- StatusOr<CompletionQueue> $connection_class_name$::completion_queue() const {
520- return Status(StatusCode::kUnimplemented, "not implemented");
521- }
522- )""" );
523- }
524-
525493 if (HasGenerateGrpcTransport ()) {
526494 EmitFactoryFunctionDefinition (EndpointLocationStyle ());
527495 }
0 commit comments