Skip to content

Commit

Permalink
contrib/git-credential-gnome-keyring.c: remove unnecessary pre-declar…
Browse files Browse the repository at this point in the history
…ations

These are all defined before they are used, so it is not necessary to
pre-declare them.  Remove the pre-declarations.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
  • Loading branch information
Brandon Casey authored and Jonathan Nieder committed Sep 23, 2013
1 parent 128a96c commit e72aefc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ struct credential
#define CREDENTIAL_INIT \
{ NULL,NULL,0,NULL,NULL,NULL }

void credential_init(struct credential *c);
void credential_clear(struct credential *c);
int credential_read(struct credential *c);
void credential_write(const struct credential *c);

typedef int (*credential_op_cb)(struct credential*);

struct credential_operation
Expand All @@ -62,14 +57,6 @@ struct credential_operation
#define CREDENTIAL_OP_END \
{ NULL,NULL }

/*
* Table with operation callbacks is defined in concrete
* credential helper implementation and contains entries
* like { "get", function_to_get_credential } terminated
* by CREDENTIAL_OP_END.
*/
struct credential_operation const credential_helper_ops[];

/* ---------------- common helper functions ----------------- */

static inline void free_password(char *password)
Expand Down

0 comments on commit e72aefc

Please sign in to comment.