Skip to content

Commit

Permalink
Remove redundant ifdef since set_secure_auth method alredy handles
Browse files Browse the repository at this point in the history
`MYSQL_SECURE_AUTH` inside.
  • Loading branch information
yahonda committed Sep 23, 2017
1 parent 21abdf1 commit 986aadc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/mysql2/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,9 +1430,7 @@ void init_mysql2_client() {
rb_define_private_method(cMysql2Client, "write_timeout=", set_write_timeout, 1);
rb_define_private_method(cMysql2Client, "local_infile=", set_local_infile, 1);
rb_define_private_method(cMysql2Client, "charset_name=", set_charset_name, 1);
#if defined(MYSQL_SECURE_AUTH)
rb_define_private_method(cMysql2Client, "secure_auth=", set_secure_auth, 1);
#endif
rb_define_private_method(cMysql2Client, "default_file=", set_read_default_file, 1);
rb_define_private_method(cMysql2Client, "default_group=", set_read_default_group, 1);
rb_define_private_method(cMysql2Client, "init_command=", set_init_command, 1);
Expand Down

0 comments on commit 986aadc

Please sign in to comment.