-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify OutputStream constructors in C# #2594
Simplify OutputStream constructors in C# #2594
Conversation
@@ -41,25 +41,6 @@ internal static void traceRecv(Ice.InputStream str, Ice.Logger logger, TraceLeve | |||
} | |||
} | |||
|
|||
internal static void trace(string heading, Ice.OutputStream str, Ice.Logger logger, TraceLevels tl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this deleted Trace code was unused.
|
||
private void initialize(Ice.Internal.Instance instance, EncodingVersion encoding) | ||
/// <param name="communicator">The communicator that provides the encoding version and class format.</param> | ||
public OutputStream(Communicator communicator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use this constructor in a number of tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
This PR simplifies the OutputStream constructors in C#, and removes OutputStream's _instance.
It also removes the DefaultFormat from FormatType. We use instead null to represent an unspecified class format.