aboutsummaryrefslogtreecommitdiff
path: root/ruby/ext/google/protobuf_c/protobuf.c
diff options
context:
space:
mode:
authorAdam Greene <adam.greene@gmail.com>2015-05-03 10:55:10 -0700
committerAdam Greene <adam.greene@gmail.com>2015-05-13 10:03:56 -0700
commitd1b52a00e002fd7a4adbcdeafa0634de6088a88f (patch)
treefe21dea8131562f7ff974edaf3c92edb4a5b465f /ruby/ext/google/protobuf_c/protobuf.c
parent23bb79d4a32a77e8349d6c49052be1e56a8b8153 (diff)
downloadprotobuf-d1b52a00e002fd7a4adbcdeafa0634de6088a88f.tar.gz
protobuf-d1b52a00e002fd7a4adbcdeafa0634de6088a88f.tar.bz2
protobuf-d1b52a00e002fd7a4adbcdeafa0634de6088a88f.zip
adding and simplifying encoders/decoders
* make consistent between mri and jruby * create a #to_h and have it use symbols for keys * add #to_json and #to_proto helpers on the Google::Protobuf message classes
Diffstat (limited to 'ruby/ext/google/protobuf_c/protobuf.c')
-rw-r--r--ruby/ext/google/protobuf_c/protobuf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ruby/ext/google/protobuf_c/protobuf.c b/ruby/ext/google/protobuf_c/protobuf.c
index d2d35033..8ab518a5 100644
--- a/ruby/ext/google/protobuf_c/protobuf.c
+++ b/ruby/ext/google/protobuf_c/protobuf.c
@@ -86,13 +86,6 @@ void Init_protobuf_c() {
RepeatedField_register(protobuf);
Map_register(protobuf);
- rb_define_singleton_method(protobuf, "encode", Google_Protobuf_encode, 1);
- rb_define_singleton_method(protobuf, "decode", Google_Protobuf_decode, 2);
- rb_define_singleton_method(protobuf, "encode_json",
- Google_Protobuf_encode_json, 1);
- rb_define_singleton_method(protobuf, "decode_json",
- Google_Protobuf_decode_json, 2);
-
rb_define_singleton_method(protobuf, "deep_copy",
Google_Protobuf_deep_copy, 1);