aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport
diff options
context:
space:
mode:
authorGravatar Soheil Hassas Yeganeh <soheil@google.com>2018-10-14 22:47:15 -0400
committerGravatar Soheil Hassas Yeganeh <soheil@google.com>2018-10-14 22:47:15 -0400
commita280d89937db5a2f14aa05642dccfd00131498cc (patch)
treea206c8e779b81e1f31e13502243ed82e8251c989 /src/core/lib/transport
parentd6b140df030f4032a2e039b0af174374141300b0 (diff)
Use grpc_mdelem_create() directly.
Remove grpc_mdelem_from_slices_no_unref() since it's a wrapper around grpc_mdelem_create().
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r--src/core/lib/transport/metadata.cc5
-rw-r--r--src/core/lib/transport/metadata.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/src/core/lib/transport/metadata.cc b/src/core/lib/transport/metadata.cc
index 8f84e06fae..60af22393e 100644
--- a/src/core/lib/transport/metadata.cc
+++ b/src/core/lib/transport/metadata.cc
@@ -332,11 +332,6 @@ grpc_mdelem grpc_mdelem_from_slices(const grpc_slice& key,
return out;
}
-grpc_mdelem grpc_mdelem_from_slices_no_unref(const grpc_slice& key,
- const grpc_slice& value) {
- return grpc_mdelem_create(key, value, nullptr);
-}
-
grpc_mdelem grpc_mdelem_from_grpc_metadata(grpc_metadata* metadata) {
bool changed = false;
grpc_slice key_slice =
diff --git a/src/core/lib/transport/metadata.h b/src/core/lib/transport/metadata.h
index 22481d6824..989c7544c1 100644
--- a/src/core/lib/transport/metadata.h
+++ b/src/core/lib/transport/metadata.h
@@ -111,9 +111,6 @@ struct grpc_mdelem {
/* Unrefs the slices. */
grpc_mdelem grpc_mdelem_from_slices(const grpc_slice& key,
const grpc_slice& value);
-/* Does not unref the slices. */
-grpc_mdelem grpc_mdelem_from_slices_no_unref(const grpc_slice& key,
- const grpc_slice& value);
/* Cheaply convert a grpc_metadata to a grpc_mdelem; may use the grpc_metadata
object as backing storage (so lifetimes should align) */