Skip to content

Commit

Permalink
Remove @cpp.GenerateTypedInterceptor and associated codegen
Browse files Browse the repository at this point in the history
Summary: Typed interceptors (aka `ServiceMethodDecorator`) is taking a backseat while we revisit the approach. Let's clean up this unused code.

Reviewed By: thedavekwon

Differential Revision: D54316280

fbshipit-source-id: 49c5a0e93216e1b267ce743fd760741a0123e481
  • Loading branch information
praihan authored and facebook-github-bot committed Mar 2, 2024
1 parent 02f5ef1 commit a03d82d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions thrift/annotation/cpp.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -338,29 +338,6 @@ struct Frozen2Exclude {}
@scope.Typedef
struct Frozen2RequiresCompleteContainerParams {}

/**
* Generates typed interceptor stubs that can be overriden by user,
* and adorn the handler methods. This can be used on individual functions
* or on services (equivalent to adding it to all functions).
*
* service MyService {
* @cpp.GenerateTypedInterceptor
* void ping();
* }
*
* This will generate the following interface:
*
* class TypedInterceptor<MyService> {
* TypeErasedStorage before_ping();
* TypeErasedStorage after_ping();
* }
*
*/
@scope.Service
@scope.Interaction
@scope.Function
struct GenerateTypedInterceptor {}

/**
* Causes C++ handler code to run inline on the EventBase thread.
* Disables overload protection, use with caution.
Expand Down

0 comments on commit a03d82d

Please sign in to comment.