Skip to content

Commit 4876f68

Browse files
authored
Delete unused constants
These constants were added by 6ed1819 but they are not used anymore. They are undocumented which is why I've stumbled upon this.
1 parent f39c07a commit 4876f68

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/pdo_pgsql/pdo_pgsql.c

-5
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,6 @@ PHP_METHOD(Pdo_Pgsql, setNoticeCallback)
179179
PHP_MINIT_FUNCTION(pdo_pgsql)
180180
{
181181
REGISTER_PDO_CLASS_CONST_LONG("PGSQL_ATTR_DISABLE_PREPARES", PDO_PGSQL_ATTR_DISABLE_PREPARES);
182-
REGISTER_PDO_CLASS_CONST_LONG("PGSQL_TRANSACTION_IDLE", (zend_long)PGSQL_TRANSACTION_IDLE);
183-
REGISTER_PDO_CLASS_CONST_LONG("PGSQL_TRANSACTION_ACTIVE", (zend_long)PGSQL_TRANSACTION_ACTIVE);
184-
REGISTER_PDO_CLASS_CONST_LONG("PGSQL_TRANSACTION_INTRANS", (zend_long)PGSQL_TRANSACTION_INTRANS);
185-
REGISTER_PDO_CLASS_CONST_LONG("PGSQL_TRANSACTION_INERROR", (zend_long)PGSQL_TRANSACTION_INERROR);
186-
REGISTER_PDO_CLASS_CONST_LONG("PGSQL_TRANSACTION_UNKNOWN", (zend_long)PGSQL_TRANSACTION_UNKNOWN);
187182

188183
PdoPgsql_ce = register_class_Pdo_Pgsql(pdo_dbh_ce);
189184
PdoPgsql_ce->create_object = pdo_dbh_new;

0 commit comments

Comments
 (0)