Remove dead code
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 16 Jan 2025 13:37:28 +0000 (14:37 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 16 Jan 2025 13:37:28 +0000 (14:37 +0100)
commit7407b2d48cf37bc8847ae6c47dde2164ef2faa34
tree9e5f890c11d38f7f21995906ed9016949674b4bc
parent7a947ed25b547256c5e05793467ff0f23991073f
Remove dead code

As of commit 9895b35cb88, AlterDomainAddConstraint() can only be
called with constraints of type CONSTR_CHECK and CONSTR_NOTNULL.  So
all the code to check for and reject other constraint type values is
dead and can be removed.

Author: jian he <jian.universality@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CACJufxHitd5LGLBSSAPShhtDWxT0ViVKTHinkYW-skBX93TcpA@mail.gmail.com
src/backend/commands/typecmds.c