smbd: remove dead code
[samba.git] / source3 / smbd / smb2_ioctl_network_fs.c
index 993f6f8d61944432acbce3af0ad4a38346a9ad6a..8154fa3f92ed2ea7986bdf0642b1422743b2724a 100644 (file)
@@ -31,6 +31,9 @@
 #include "smb2_ioctl_private.h"
 #include "../lib/tsocket/tsocket.h"
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_SMB2
+
 static void copychunk_pack_limits(struct srv_copychunk_rsp *cc_rsp)
 {
        cc_rsp->chunks_written = COPYCHUNK_MAX_CHUNKS;
@@ -91,7 +94,6 @@ struct fsctl_srv_copychunk_state {
                COPYCHUNK_OUT_LIMITS,
                COPYCHUNK_OUT_RSP,
        } out_data;
-       bool aapl_copyfile;
 };
 static void fsctl_srv_copychunk_vfs_done(struct tevent_req *subreq);
 
@@ -200,8 +202,7 @@ static NTSTATUS fsctl_srv_copychunk_loop(struct tevent_req *req)
                                         source_off,
                                         state->dst_fsp,
                                         target_off,
-                                        length,
-                                        0);
+                                        length);
        if (tevent_req_nomem(subreq, req)) {
                return NT_STATUS_NO_MEMORY;
        }