Return-Path: From: Mikel Astiz To: linux-bluetooth@vger.kernel.org Cc: Mikel Astiz Subject: [PATCH obexd v3 09/14] client: Remove unused functions in transfer API Date: Wed, 30 May 2012 17:50:18 +0200 Message-Id: <1338393023-29941-10-git-send-email-mikel.astiz.oss@gmail.com> In-Reply-To: <1338393023-29941-1-git-send-email-mikel.astiz.oss@gmail.com> References: <1338393023-29941-1-git-send-email-mikel.astiz.oss@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Mikel Astiz After the removal of the agent these functions are not useful any more. --- client/transfer.c | 23 ----------------------- client/transfer.h | 3 --- 2 files changed, 0 insertions(+), 26 deletions(-) diff --git a/client/transfer.c b/client/transfer.c index 0385321..1138aa6 100644 --- a/client/transfer.c +++ b/client/transfer.c @@ -753,29 +753,6 @@ int obc_transfer_get_contents(struct obc_transfer *transfer, char **contents, return 0; } -void obc_transfer_set_name(struct obc_transfer *transfer, const char *name) -{ - g_free(transfer->name); - transfer->name = g_strdup(name); -} - -int obc_transfer_set_filename(struct obc_transfer *transfer, - const char *filename) -{ - int err; - - err = rename(transfer->filename, filename); - if (err < 0) { - error("rename(): %s (%d)", strerror(errno), errno); - return -errno; - } - - g_free(transfer->filename); - transfer->filename = g_strdup(filename); - - return 0; -} - const char *obc_transfer_get_path(struct obc_transfer *transfer) { return transfer->path; diff --git a/client/transfer.h b/client/transfer.h index a65a2ed..bfa166d 100644 --- a/client/transfer.h +++ b/client/transfer.h @@ -56,8 +56,5 @@ const void *obc_transfer_get_params(struct obc_transfer *transfer, int obc_transfer_get_contents(struct obc_transfer *transfer, char **contents, size_t *size); -void obc_transfer_set_name(struct obc_transfer *transfer, const char *name); -int obc_transfer_set_filename(struct obc_transfer *transfer, - const char *filename); const char *obc_transfer_get_path(struct obc_transfer *transfer); gint64 obc_transfer_get_size(struct obc_transfer *transfer); -- 1.7.7.6