Skip to content

Commit fb2f4ae

Browse files
committed
Removing the naked single object put and get calls.
1 parent 33c7dad commit fb2f4ae

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/ds3.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -709,11 +709,6 @@ ds3_request* ds3_init_get_bucket(const char* bucket_name) {
709709
return (ds3_request*) _common_request_init(HTTP_GET, _build_path("/", bucket_name, NULL));
710710
}
711711

712-
ds3_request* ds3_init_get_object(const char* bucket_name, const char* object_name) {
713-
struct _ds3_request* request = _common_request_init(HTTP_GET, _build_path("/", bucket_name, object_name));
714-
return (ds3_request*) request;
715-
}
716-
717712
ds3_request* ds3_init_get_object_for_job(const char* bucket_name, const char* object_name, uint64_t offset, const char* job_id) {
718713
char buff[21];
719714
struct _ds3_request* request = _common_request_init(HTTP_GET, _build_path("/", bucket_name, object_name));
@@ -730,12 +725,6 @@ ds3_request* ds3_init_delete_object(const char* bucket_name, const char* object_
730725
return (ds3_request*) _common_request_init(HTTP_DELETE, _build_path("/", bucket_name, object_name));
731726
}
732727

733-
ds3_request* ds3_init_put_object(const char* bucket_name, const char* object_name, uint64_t length) {
734-
struct _ds3_request* request = _common_request_init(HTTP_PUT, _build_path("/", bucket_name, object_name));
735-
request->length = length;
736-
return (ds3_request*) request;
737-
}
738-
739728
ds3_request* ds3_init_put_object_for_job(const char* bucket_name, const char* object_name, uint64_t offset, uint64_t length, const char* job_id) {
740729
struct _ds3_request* request = _common_request_init(HTTP_PUT, _build_path("/", bucket_name, object_name));
741730
char buff[21];

src/ds3.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,8 @@ LIBRARY_API ds3_error* ds3_create_client_from_env(ds3_client** client);
197197

198198
LIBRARY_API ds3_request* ds3_init_get_service(void);
199199
LIBRARY_API ds3_request* ds3_init_get_bucket(const char* bucket_name);
200-
LIBRARY_API ds3_request* ds3_init_get_object(const char* bucket_name, const char* object_name);
201200
LIBRARY_API ds3_request* ds3_init_get_object_for_job(const char* bucket_name, const char* object_name, uint64_t offset, const char* job_id);
202201
LIBRARY_API ds3_request* ds3_init_put_bucket(const char* bucket_name);
203-
LIBRARY_API ds3_request* ds3_init_put_object(const char* bucket_name, const char* object_name, uint64_t size);
204202
LIBRARY_API ds3_request* ds3_init_put_object_for_job(const char* bucket_name, const char* object_name, uint64_t offset, uint64_t length, const char* job_id);
205203
LIBRARY_API ds3_request* ds3_init_delete_bucket(const char* bucket_name);
206204
LIBRARY_API ds3_request* ds3_init_delete_object(const char* bucket_name, const char* object_name);

0 commit comments

Comments
 (0)