Skip to content

Commit

Permalink
libnfs.c: remove function nfs_get_current_offset
Browse files Browse the repository at this point in the history
Remove this function (that no one uses) since this is what
lseek(SEEK_CUR, 0) does.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information
sahlberg committed Dec 9, 2014
1 parent 9c1d384 commit b53cd4d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions include/nfsc/libnfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1413,13 +1413,6 @@ EXTERN struct exportnode *mount_getexports(const char *server);
EXTERN void mount_free_export_list(struct exportnode *exports);


//qqq replace later with lseek(cur, 0)
uint64_t nfs_get_current_offset(struct nfsfh *nfsfh);





struct nfs_server_list {
struct nfs_server_list *next;
char *addr;
Expand Down
7 changes: 0 additions & 7 deletions lib/libnfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4930,13 +4930,6 @@ int nfs_link_async(struct nfs_context *nfs, const char *oldpath, const char *new
}


//qqq replace later with lseek()
uint64_t nfs_get_current_offset(struct nfsfh *nfsfh)
{
return nfsfh->offset;
}



/*
* Get the maximum supported READ3 size by the server
Expand Down

0 comments on commit b53cd4d

Please sign in to comment.