Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
b30bc2aa
Commit
b30bc2aa
authored
9 years ago
by
Vijay Pai
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code and a thus unneeded change to C++ bbuf
parent
60456810
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/grpc++/support/byte_buffer.h
+0
-3
0 additions, 3 deletions
include/grpc++/support/byte_buffer.h
src/cpp/util/byte_buffer.cc
+0
-6
0 additions, 6 deletions
src/cpp/util/byte_buffer.cc
test/cpp/qps/client.h
+0
-2
0 additions, 2 deletions
test/cpp/qps/client.h
with
0 additions
and
11 deletions
include/grpc++/support/byte_buffer.h
+
0
−
3
View file @
b30bc2aa
...
...
@@ -72,9 +72,6 @@ class ByteBuffer GRPC_FINAL {
/// Buffer size in bytes.
size_t
Length
()
const
;
/// Move contents from \a bbuf and clear \a bbuf
void
MoveFrom
(
ByteBuffer
*
bbuf
);
private
:
friend
class
SerializationTraits
<
ByteBuffer
,
void
>
;
...
...
This diff is collapsed.
Click to expand it.
src/cpp/util/byte_buffer.cc
+
0
−
6
View file @
b30bc2aa
...
...
@@ -79,12 +79,6 @@ size_t ByteBuffer::Length() const {
}
}
void
ByteBuffer
::
MoveFrom
(
ByteBuffer
*
bbuf
)
{
Clear
();
// in case we already had something, but we shouldn't use this then
buffer_
=
bbuf
->
buffer_
;
bbuf
->
buffer_
=
nullptr
;
}
ByteBuffer
::
ByteBuffer
(
const
ByteBuffer
&
buf
)
:
buffer_
(
grpc_byte_buffer_copy
(
buf
.
buffer_
))
{
}
...
...
This diff is collapsed.
Click to expand it.
test/cpp/qps/client.h
+
0
−
2
View file @
b30bc2aa
...
...
@@ -118,8 +118,6 @@ class ClientRequestCreator<ByteBuffer> {
buf
.
get
(),
payload_config
.
bytebuf_params
().
req_size
());
Slice
slice
(
s
,
Slice
::
STEAL_REF
);
*
req
=
ByteBuffer
(
&
slice
,
1
);
// std::unique_ptr<ByteBuffer> bbuf(new ByteBuffer(&slice, 1));
// req->MoveFrom(bbuf.get());
}
else
{
GPR_ASSERT
(
false
);
// not appropriate for this specialization
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment