1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

pgcrypto: Remove unused code

The mbuf_tell, mbuf_rewind and pgp_get_cipher_name functions were
introduced in commit e94dd6ab91, 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
This commit is contained in:
Daniel Gustafsson
2022-09-14 21:58:30 +02:00
parent 5f84647ee1
commit 1d3566f1b2
4 changed files with 0 additions and 26 deletions

View File

@ -58,12 +58,6 @@ mbuf_size(MBuf *mbuf)
return mbuf->data_end - mbuf->data;
}
int
mbuf_tell(MBuf *mbuf)
{
return mbuf->read_pos - mbuf->data;
}
int
mbuf_free(MBuf *mbuf)
{
@ -164,13 +158,6 @@ mbuf_grab(MBuf *mbuf, int len, uint8 **data_p)
return len;
}
int
mbuf_rewind(MBuf *mbuf)
{
mbuf->read_pos = mbuf->data;
return 0;
}
int
mbuf_steal_data(MBuf *mbuf, uint8 **data_p)
{