diff --git a/include/postgres.php b/include/postgres.php
index c3d9d7053..7e724b5d9 100644
--- a/include/postgres.php
+++ b/include/postgres.php
@@ -19,54 +19,6 @@
//$Revision$
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
-
-
-/*++
- * function : CheckUser
- * Parameter : none
- * return : not use
- * Description :
- * Check if user is active and exists in the
- * repository
- * Automatically redirect
- *
-++*/
-/* obsolete function CheckUser()
-{
- global $g_user,$g_pass,$IsValid;
- echo_debug(__FILE__,__LINE__,"CheckUser");
- $res=0;
- $pass5=md5($g_pass);
- if ( $IsValid == 1 ) { return; }
- $cn=DbConnect("account_repository");
- if ( $cn != false ) {
- $sql="select ac_users.use_login,ac_users.use_active, ac_users.use_pass
- from ac_users
- where ac_users.use_login='$g_user'
- and ac_users.use_active=1
- and ac_users.use_pass='$pass5'";
- echo_debug(__FILE__,__LINE__,"Sql = $sql");
- $ret=pg_exec($cn,$sql);
- $res=pg_NumRows($ret);
- echo_debug(__FILE__,__LINE__,"Number of found rows : $res");
- }
-
- if ( $res == 0 ) {
- echo '';
- echo "
";
- echo "