Skip to content

Commit

Permalink
Make encoding function static
Browse files Browse the repository at this point in the history
since it's no longer used outside of the pg.c
  • Loading branch information
larskanis committed Aug 31, 2023
1 parent 1f9a52e commit ab524fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ext/pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const char * const (pg_enc_pg2ruby_mapping[][2]) = {
* - returns NULL if the client encoding is 'SQL_ASCII'.
* - returns ASCII-8BIT if the client encoding is unknown.
*/
rb_encoding *
static rb_encoding *
pg_get_pg_encoding_as_rb_encoding( int enc_id )
{
const char *name = pg_encoding_to_char( enc_id );
Expand Down
1 change: 0 additions & 1 deletion ext/pg.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ pgresult_get_this( VALUE self )
}


rb_encoding * pg_get_pg_encoding_as_rb_encoding _(( int ));
rb_encoding * pg_get_pg_encname_as_rb_encoding _(( const char * ));
const char * pg_get_rb_encoding_as_pg_encoding _(( rb_encoding * ));
rb_encoding *pg_conn_enc_get _(( PGconn * ));
Expand Down

0 comments on commit ab524fa

Please sign in to comment.