Skip to content

Commit

Permalink
Make some PG::Result method definitions static
Browse files Browse the repository at this point in the history
.. which are not used outside of this file.
  • Loading branch information
larskanis committed Apr 27, 2023
1 parent f23782f commit 2b87db5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/pg_result.c
Expand Up @@ -391,7 +391,7 @@ pg_result_clear(VALUE self)
*
*/
VALUE
pg_result_freeze(VALUE self)
static pg_result_freeze(VALUE self)
{
t_pg_result *this = pgresult_get_this(self);

Expand All @@ -405,7 +405,7 @@ pg_result_freeze(VALUE self)
*
* Returns +true+ if the backend result memory has been freed.
*/
VALUE
static VALUE
pgresult_cleared_p( VALUE self )
{
t_pg_result *this = pgresult_get_this(self);
Expand All @@ -422,7 +422,7 @@ pgresult_cleared_p( VALUE self )
* All other Result objects are automatically cleared by the GC when the object is no longer in use or manually by PG::Result#clear .
*
*/
VALUE
static VALUE
pgresult_autoclear_p( VALUE self )
{
t_pg_result *this = pgresult_get_this(self);
Expand Down

0 comments on commit 2b87db5

Please sign in to comment.