Author: mkhl Date: 2006-07-23 21:51:59 +0000 (Sun, 23 Jul 2006) New Revision: 17212
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17212 Log: Comment out a few unused functions. Martin Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c Changeset: Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c =================================================================== --- branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-23 21:27:44 UTC (rev 17211) +++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-23 21:51:59 UTC (rev 17212) @@ -391,6 +391,7 @@ } /* True if any of attrs is mapped */ +/* static BOOL check_attrs_mapped(struct ldb_module *module, @@ -408,8 +409,10 @@ return False; } +*/ /* True if any of the message elements is mapped */ +/* static BOOL check_msg_mapped(struct ldb_module *module, @@ -427,8 +430,10 @@ return False; } +*/ /* True if remote attribute attr can be created from msg */ +/* static BOOL check_msg_can_map_attr(struct ldb_module *module, @@ -445,12 +450,13 @@ if (ldb_msg_find_element(msg, map->local_name) == NULL) return False; - /* TODO: if this attr requires context: + /\* TODO: if this attr requires context: make sure all context attrs are mappable from msg - prevent unsolvable attr chases ... somehow */ + prevent unsolvable attr chases ... somehow *\/ return True; } +*/ /* select only attrs that are not mapped */ static @@ -572,6 +578,7 @@ } /* select only local attrs that can be unmapped from msg */ +/* static const char ** select_unmappable_msg_attrs(struct ldb_module *module, @@ -592,9 +599,9 @@ return NULL; result[0] = NULL; - /* for each mapping, check if all remote attributes are present - if they are, add the local one to the result */ - /* TODO: Alternatively, walk over msg->elements and use find_remote_attr. */ + /\* for each mapping, check if all remote attributes are present + if they are, add the local one to the result *\/ + /\* TODO: Alternatively, walk over msg->elements and use find_remote_attr. *\/ for (i = 0; data->attribute_maps[i].local_name; i++) { BOOL avail = False; map = &data->attribute_maps[i]; @@ -613,7 +620,7 @@ break; case MAP_GENERATE: - /* look for *all* remote names */ + /\* look for *all* remote names *\/ avail = True; for (j = 0; map->u.generate.remote_names[j]; j++) avail &= (ldb_msg_find_element(msg, map->u.generate.remote_names[j]) != NULL); @@ -631,8 +638,8 @@ return result; } +*/ - /* Check whether the given objectClass is contained in the specified * message */ /*