The branch, v3-4-test has been updated
       via  da2cd75615f72b1e3d138e0d374fea0998800355 (commit)
      from  7a5f973b2cfde4d696b2c54f6a701062e57a547b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit da2cd75615f72b1e3d138e0d374fea0998800355
Author: Volker Lendecke <[email protected]>
Date:   Mon Mar 16 21:02:26 2009 +0100

    Remove unused async_req references from wb_reqtrans.c

-----------------------------------------------------------------------

Summary of changes:
 source3/include/wbc_async.h |    2 --
 source3/lib/wb_reqtrans.c   |   37 -------------------------------------
 2 files changed, 0 insertions(+), 39 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/wbc_async.h b/source3/include/wbc_async.h
index 37f500e..eaec0d1 100644
--- a/source3/include/wbc_async.h
+++ b/source3/include/wbc_async.h
@@ -33,9 +33,7 @@ wbcErr wb_trans_recv(struct tevent_req *req, TALLOC_CTX 
*mem_ctx,
 struct wb_context *wb_context_init(TALLOC_CTX *mem_ctx);
 
 /* Definitions from wb_reqtrans.c */
-bool async_req_is_wbcerr(struct async_req *req, wbcErr *pwbc_err);
 wbcErr map_wbc_err_from_errno(int error);
-wbcErr async_req_simple_recv_wbcerr(struct async_req *req);
 
 bool tevent_req_is_wbcerr(struct tevent_req *req, wbcErr *pwbc_err);
 wbcErr tevent_req_simple_recv_wbcerr(struct tevent_req *req);
diff --git a/source3/lib/wb_reqtrans.c b/source3/lib/wb_reqtrans.c
index e1c6749..dbea8b6 100644
--- a/source3/lib/wb_reqtrans.c
+++ b/source3/lib/wb_reqtrans.c
@@ -25,32 +25,6 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND
 
-bool async_req_is_wbcerr(struct async_req *req, wbcErr *pwbc_err)
-{
-       enum async_req_state state;
-       uint64_t error;
-       if (!async_req_is_error(req, &state, &error)) {
-               *pwbc_err = WBC_ERR_SUCCESS;
-               return false;
-       }
-
-       switch (state) {
-       case ASYNC_REQ_USER_ERROR:
-               *pwbc_err = error;
-               break;
-       case ASYNC_REQ_TIMED_OUT:
-               *pwbc_err = WBC_ERR_UNKNOWN_FAILURE;
-               break;
-       case ASYNC_REQ_NO_MEMORY:
-               *pwbc_err = WBC_ERR_NO_MEMORY;
-               break;
-       default:
-               *pwbc_err = WBC_ERR_UNKNOWN_FAILURE;
-               break;
-       }
-       return true;
-}
-
 wbcErr map_wbc_err_from_errno(int error)
 {
        switch(error) {
@@ -65,17 +39,6 @@ wbcErr map_wbc_err_from_errno(int error)
        }
 }
 
-wbcErr async_req_simple_recv_wbcerr(struct async_req *req)
-{
-       wbcErr wbc_err;
-
-       if (async_req_is_wbcerr(req, &wbc_err)) {
-               return wbc_err;
-       }
-
-       return WBC_ERR_SUCCESS;
-}
-
 bool tevent_req_is_wbcerr(struct tevent_req *req, wbcErr *pwbc_err)
 {
        enum tevent_req_state state;


-- 
Samba Shared Repository

Reply via email to