summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl/drepl_out_pull.c
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-07 22:24:24 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-09 18:26:50 +0300
commit7ee34182dffdf497bdad5a1e155bc2ca80d71111 (patch)
treef9caf3c90fb414c4ef974649fb1a27f0cdff7da5 /source4/dsdb/repl/drepl_out_pull.c
parentef56945d0e33aebb089789906b9d037852c9b028 (diff)
downloadsamba-7ee34182dffdf497bdad5a1e155bc2ca80d71111.tar.gz
samba-7ee34182dffdf497bdad5a1e155bc2ca80d71111.tar.bz2
samba-7ee34182dffdf497bdad5a1e155bc2ca80d71111.zip
s4-dsdb/repl/drepl_out_pull.c: Remove unused code
Diffstat (limited to 'source4/dsdb/repl/drepl_out_pull.c')
-rw-r--r--source4/dsdb/repl/drepl_out_pull.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/source4/dsdb/repl/drepl_out_pull.c b/source4/dsdb/repl/drepl_out_pull.c
index db77a4e1de..a4a00b48e7 100644
--- a/source4/dsdb/repl/drepl_out_pull.c
+++ b/source4/dsdb/repl/drepl_out_pull.c
@@ -89,49 +89,6 @@ WERROR dreplsrv_schedule_pull_replication(struct dreplsrv_service *s, TALLOC_CTX
}
-/* force an immediate of the specified partition by GUID */
-WERROR dreplsrv_schedule_partition_pull_by_guid(struct dreplsrv_service *s, TALLOC_CTX *mem_ctx,
- struct GUID *guid)
-{
- struct dreplsrv_partition *p;
-
- for (p = s->partitions; p; p = p->next) {
- if (GUID_compare(&p->nc.guid, guid) == 0) {
- return dreplsrv_schedule_partition_pull(s, p, mem_ctx);
- }
- }
-
- return WERR_NOT_FOUND;
-}
-
-/* force an immediate of the specified partition by Naming Context */
-WERROR dreplsrv_schedule_partition_pull_by_nc(struct dreplsrv_service *s, TALLOC_CTX *mem_ctx,
- struct drsuapi_DsReplicaObjectIdentifier *nc)
-{
- struct dreplsrv_partition *p;
- bool valid_sid, valid_guid;
- struct dom_sid null_sid;
- ZERO_STRUCT(null_sid);
-
- valid_sid = !dom_sid_equal(&null_sid, &nc->sid);
- valid_guid = !GUID_all_zero(&nc->guid);
-
- if (!valid_sid && !valid_guid && !nc->dn) {
- return WERR_DS_DRA_INVALID_PARAMETER;
- }
-
- for (p = s->partitions; p; p = p->next) {
- if ((valid_guid && GUID_equal(&p->nc.guid, &nc->guid))
- || strequal(p->nc.dn, nc->dn)
- || (valid_sid && dom_sid_equal(&p->nc.sid, &nc->sid))) {
- return dreplsrv_schedule_partition_pull(s, p, mem_ctx);
- }
- }
-
- return WERR_DS_DRA_BAD_NC;
-}
-
-
static void dreplsrv_pending_op_callback(struct tevent_req *subreq)
{
struct dreplsrv_out_operation *op = tevent_req_callback_data(subreq,