Skip to content

Remove deprecated version of SetTotalBytesLimit()#8794

Merged
acozzette merged 2 commits intoprotocolbuffers:masterfrom
georgthegreat:patch-1
Jul 9, 2021
Merged

Remove deprecated version of SetTotalBytesLimit()#8794
acozzette merged 2 commits intoprotocolbuffers:masterfrom
georgthegreat:patch-1

Conversation

@georgthegreat
Copy link
Copy Markdown
Contributor

@georgthegreat georgthegreat commented Jul 6, 2021

It has been deprecated for at least 3 years.
Worse backward incompatible things have happened during this period.

I think this method could be safely removed, as the client code fix is trivial.

It has been depcated for at least 3 years.
Worst (backward incompatible) things happened during this period.

I think this method could be safely removed, as the client code fix is trivial.
@acozzette
Copy link
Copy Markdown

It looks like coded_stream_unittest.cc needs to be updated because it still exercises the deprecated function.

@georgthegreat
Copy link
Copy Markdown
Contributor Author

Thanks, Adam.
This should be fixed now.

@acozzette acozzette merged commit cda7954 into protocolbuffers:master Jul 9, 2021
@acozzette
Copy link
Copy Markdown

@georgthegreat Thanks for the cleanup!

@georgthegreat georgthegreat deleted the patch-1 branch July 10, 2021 08:26
@MohamadHalwani
Copy link
Copy Markdown

error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(const int&, const int&)’
any idea ?

@georgthegreat
Copy link
Copy Markdown
Contributor Author

You should use single parameter version instead.

madisongh pushed a commit to OE4T/meta-tegra that referenced this pull request Sep 27, 2021
This is needed because of upgrade version of protobuf from 3.17.x to 3.18.x
in meta-openembedded

https://git.openembedded.org/meta-openembedded/commit/?id=d7d9597348534b9d93dd7ed8ef49fa2b5c33969d

For more details, deprecated version of SetTotalBytesLimit API was removed
in PR #8794 (protocolbuffers/protobuf#8794)

Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants