Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d3566f

Browse files
pgcrypto: Remove unused code
The mbuf_tell, mbuf_rewind and pgp_get_cipher_name functions wereintroduced in commite94dd6a, but were never used, so remove.Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>Discussion:https://postgr.es/m/FCF3F14E-17D5-41F2-AC58-0A97B341193A@yesql.se
1 parent5f84647 commit1d3566f

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

‎contrib/pgcrypto/mbuf.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ mbuf_size(MBuf *mbuf)
5858
returnmbuf->data_end-mbuf->data;
5959
}
6060

61-
int
62-
mbuf_tell(MBuf*mbuf)
63-
{
64-
returnmbuf->read_pos-mbuf->data;
65-
}
66-
6761
int
6862
mbuf_free(MBuf*mbuf)
6963
{
@@ -164,13 +158,6 @@ mbuf_grab(MBuf *mbuf, int len, uint8 **data_p)
164158
returnlen;
165159
}
166160

167-
int
168-
mbuf_rewind(MBuf*mbuf)
169-
{
170-
mbuf->read_pos=mbuf->data;
171-
return0;
172-
}
173-
174161
int
175162
mbuf_steal_data(MBuf*mbuf,uint8**data_p)
176163
{

‎contrib/pgcrypto/mbuf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,11 @@ struct PullFilterOps
7878
*/
7979
MBuf*mbuf_create(intlen);
8080
MBuf*mbuf_create_from_data(uint8*data,intlen);
81-
intmbuf_tell(MBuf*mbuf);
8281
intmbuf_avail(MBuf*mbuf);
8382
intmbuf_size(MBuf*mbuf);
8483
intmbuf_grab(MBuf*mbuf,intlen,uint8**data_p);
8584
intmbuf_steal_data(MBuf*mbuf,uint8**data_p);
8685
intmbuf_append(MBuf*dst,constuint8*buf,intcnt);
87-
intmbuf_rewind(MBuf*mbuf);
8886
intmbuf_free(MBuf*mbuf);
8987

9088
/*

‎contrib/pgcrypto/pgp.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,6 @@ pgp_get_digest_name(int code)
133133
returnNULL;
134134
}
135135

136-
constchar*
137-
pgp_get_cipher_name(intcode)
138-
{
139-
conststructcipher_info*i=get_cipher_info(code);
140-
141-
if (i!=NULL)
142-
returni->name;
143-
returnNULL;
144-
}
145-
146136
int
147137
pgp_get_cipher_key_size(intcode)
148138
{

‎contrib/pgcrypto/pgp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ intpgp_free(PGP_Context *ctx);
244244
intpgp_get_digest_code(constchar*name);
245245
intpgp_get_cipher_code(constchar*name);
246246
constchar*pgp_get_digest_name(intcode);
247-
constchar*pgp_get_cipher_name(intcode);
248247

249248
intpgp_set_cipher_algo(PGP_Context*ctx,constchar*name);
250249
intpgp_set_s2k_mode(PGP_Context*ctx,inttype);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp