You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/11/19 18:23:25 UTC
[couchdb-thrift-protocol] 13/19: Remove parameterized types
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-thrift-protocol.git
commit 811b3d3db22fbcd40f1f5221f30d89e169f85fad
Author: Takeru Ohta <ph...@gmail.com>
AuthorDate: Thu Oct 19 05:21:24 2017 +0900
Remove parameterized types
---
src/thrift_protocol.erl | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/src/thrift_protocol.erl b/src/thrift_protocol.erl
index ac01bbe..4c80023 100644
--- a/src/thrift_protocol.erl
+++ b/src/thrift_protocol.erl
@@ -38,10 +38,10 @@
-export_type([message/0, message_type/0]).
-export_type([data/0, data_type/0]).
--export_type([struct/0, struct/1, field_id/0]).
--export_type([thrift_map/0, thrift_map/2]).
--export_type([thrift_list/0, thrift_list/1]).
--export_type([set/0, set/1]).
+-export_type([struct/0, field_id/0]).
+-export_type([thrift_map/0]).
+-export_type([thrift_list/0]).
+-export_type([set/0]).
-export_type([i8/0, i16/0, i32/0, i64/0]).
-export_type([format/0]).
@@ -57,30 +57,18 @@
-type struct() :: #thrift_protocol_struct{}.
%% Struct.
--type struct(Fields) :: #thrift_protocol_struct{fields :: Fields}.
-%% Struct.
-
-type field_id() :: integer().
%% The identifier of a struct field (16-bit signed integer).
-type thrift_map() :: #thrift_protocol_map{}.
%% Map.
--type thrift_map(KeyType, ValueType) :: #thrift_protocol_map{key_type :: KeyType, value_type :: ValueType}.
-%% Map.
-
-type thrift_list() :: #thrift_protocol_list{}.
%% List.
--type thrift_list(ElementType) :: #thrift_protocol_list{element_type :: ElementType}.
-%% List
-
-type set() :: #thrift_protocol_set{}.
%% Set.
--type set(ElementType) :: #thrift_protocol_set{element_type :: ElementType}.
-%% Set.
-
-type i8() :: {i8, integer()}.
%% 8-bit signed integer.