Skip to content
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

Merged
merged 6 commits into from
Aug 1, 2024

Conversation

bernardnormier
Copy link
Member

@bernardnormier bernardnormier commented Jul 31, 2024

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.

@bernardnormier bernardnormier requested review from pepone and externl July 31, 2024 20:06
@@ -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)
Copy link
Member Author

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.

csharp/src/Ice/OutputStream.cs Outdated Show resolved Hide resolved

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)
Copy link
Member Author

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.

Copy link
Member

@pepone pepone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@bernardnormier bernardnormier merged commit fe1f0d2 into zeroc-ice:main Aug 1, 2024
18 checks passed
@bernardnormier bernardnormier deleted the outputstream-instance branch December 9, 2024 17:08
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants