Browse Source

db_postgres: remove db_int2pg_varbit function, commented out since 2008

Henning Westerholt 14 years ago
parent
commit
91d7092587
1 changed files with 1 additions and 16 deletions
  1. 1 16
      modules/db_postgres/pg_fld.c

+ 1 - 16
modules/db_postgres/pg_fld.c

@@ -246,22 +246,6 @@ static inline void db_int2pg_bit(struct pg_params* dst, int i, db_fld_t* src)
    	dst->len[i] = 8;
 }
 
-/*
-static inline void db_int2pg_varbit(struct pg_params* dst, int i,
-						  db_fld_t* src)
-{
-	unsigned int len = 32;
-	struct pg_fld* pfld = DB_GET_PAYLOAD(src);
-
-	pfld->v.int4[0] = htonl(len);
-	pfld->v.int4[1] = htonl(src->v.int4);
-
-	dst->fmt[i] = 1;
-	dst->val[i] = pfld->v.byte;
-   	dst->len[i] = 4 + len / 8 + (len % 8 ? 1 : 0);
-}
-*/
-
 
 static inline void db_str2pg_string(struct pg_params* dst, int i,
 									db_fld_t* src)
@@ -271,6 +255,7 @@ static inline void db_str2pg_string(struct pg_params* dst, int i,
 	dst->len[i] = src->v.lstr.len;
 }
 
+
 static inline void db_cstr2pg_string(struct pg_params* dst, int i,
 									 db_fld_t* src)
 {