Skip to content

Commit

Permalink
Remove legacy compile mode (microsoft#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
thhous-msft authored Feb 24, 2022
1 parent b0d45e5 commit f9f131d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
2 changes: 0 additions & 2 deletions docs/Release.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ The following changes will be necessary for apps that upgrade from v1.* to v2.0:
- No more need to check for a return code from `StreamReceiveComplete`.
- QUIC_ADDRESS_FAMILY_IPV6 has been changed to be platform specific rather then always windows values. For C/C++ consumers this is only a binary breaking change. For Interop consumers, the value will change for linux and macOS.

> **Note** - While support for `QUIC_LEGACY_COMPILE_MODE` is included, its use is **not recommended** and it **will be removed** in an upcoming release.
### Other Changes

- Various Linux build and packaging improvements (#2090, #2092, #2097)
Expand Down
22 changes: 0 additions & 22 deletions src/inc/msquic.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ DEFINE_ENUM_FLAG_OPERATORS(QUIC_STREAM_OPEN_FLAGS)
typedef enum QUIC_STREAM_START_FLAGS {
QUIC_STREAM_START_FLAG_NONE = 0x0000,
QUIC_STREAM_START_FLAG_IMMEDIATE = 0x0001, // Immediately informs peer that stream is open.
#ifdef QUIC_LEGACY_COMPILE_MODE
QUIC_STREAM_START_FLAG_ASYNC = 0x0000, // No-op, but included for legacy compiles.
#endif
QUIC_STREAM_START_FLAG_FAIL_BLOCKED = 0x0002, // Only opens the stream if flow control allows.
QUIC_STREAM_START_FLAG_SHUTDOWN_ON_FAIL = 0x0004, // Shutdown the stream immediately after start failure.
QUIC_STREAM_START_FLAG_INDICATE_PEER_ACCEPT = 0x0008, // Indicate PEER_ACCEPTED event if not accepted at start.
Expand Down Expand Up @@ -692,18 +689,6 @@ void

#define QUIC_PARAM_IS_GLOBAL(Param) ((Param & 0x7F000000) == QUIC_PARAM_PREFIX_GLOBAL)

#ifdef QUIC_LEGACY_COMPILE_MODE
typedef enum QUIC_PARAM_LEVEL {
QUIC_PARAM_LEVEL_GLOBAL = 0,
QUIC_PARAM_LEVEL_REGISTRATION = 0,
QUIC_PARAM_LEVEL_CONFIGURATION = 0,
QUIC_PARAM_LEVEL_LISTENER = 0,
QUIC_PARAM_LEVEL_CONNECTION = 0,
QUIC_PARAM_LEVEL_TLS = 0,
QUIC_PARAM_LEVEL_STREAM = 0,
} QUIC_PARAM_LEVEL;
#endif

//
// Parameters for Global.
//
Expand Down Expand Up @@ -1365,15 +1350,8 @@ typedef struct QUIC_API_TABLE {
QUIC_GET_CONTEXT_FN GetContext;
QUIC_SET_CALLBACK_HANDLER_FN SetCallbackHandler;

#ifdef QUIC_LEGACY_COMPILE_MODE
QUIC_SET_PARAM_FN SetParam2;
QUIC_GET_PARAM_FN GetParam2;
#define SetParam(Handle, Level, Param, BufferLength, Buffer) SetParam2(Handle, ((uint32_t)Level)|Param, BufferLength, Buffer)
#define GetParam(Handle, Level, Param, BufferLength, Buffer) GetParam2(Handle, ((uint32_t)Level)|Param, BufferLength, Buffer)
#else
QUIC_SET_PARAM_FN SetParam;
QUIC_GET_PARAM_FN GetParam;
#endif

QUIC_REGISTRATION_OPEN_FN RegistrationOpen;
QUIC_REGISTRATION_CLOSE_FN RegistrationClose;
Expand Down

0 comments on commit f9f131d

Please sign in to comment.