Skip to content

Commit

Permalink
mxq: Remove obsolete mxq.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed May 21, 2015
1 parent 3d79c8f commit ab0776b
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 96 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,6 @@ mx_flock.h += mx_flock.h
mx_mysql.h += mx_mysql.h
mx_mysql.h += $(mx_util.h)

### mxq.h --------------------------------------------------------------

mxq.h += mxq.h
mxq.h += $(mxq_group.h)
mxq.h += $(mxq_job.h)

### mxq_mysql.h --------------------------------------------------------

mxq_mysql.h += mxq_mysql.h
Expand All @@ -195,7 +189,6 @@ mxq_mysql.h += $(mxq_util.h)

mxq_util.h += mxq_util.h
mxq_util.h += $(mx_log.h)
mxq_util.h += $(mxq.h)

### mxq_group.h --------------------------------------------------------

Expand Down Expand Up @@ -317,7 +310,6 @@ clean: CLEAN += mxq_group.o

mxq_job.o: $(mx_util.h)
mxq_job.o: $(mx_log.h)
mxq_job.o: $(mxq.h)
mxq_job.o: $(mxq_job.h)
mxq_job.o: $(mxq_group.h)
mxq_job.o: $(mxq_mysql.h)
Expand Down
74 changes: 0 additions & 74 deletions mxq.h

This file was deleted.

1 change: 1 addition & 0 deletions mxq_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "mx_log.h"

#include "mxq_group.h"
#include "mxq_job.h"
#include "mxq_mysql.h"

#define MXQ_GROUP_FIELDS "group_id," \
Expand Down
1 change: 0 additions & 1 deletion mxq_job.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "mxq_group.h"
#include "mxq_job.h"
#include "mxq_mysql.h"
#include "mxq.h"

#define MXQ_JOB_FIELDS "job_id, " \
"job_status, " \
Expand Down
3 changes: 3 additions & 0 deletions mxq_job.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#include <stdint.h>
#include <mysql.h>

#include <sys/time.h>
#include <sys/resource.h>

#include "mxq_group.h"

struct mxq_job {
Expand Down
3 changes: 3 additions & 0 deletions mxq_job_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include "mxq_util.h"
#include "mxq_mysql.h"

#include "mxq_group.h"
#include "mxq_job.h"


struct result {
struct mxq_job job;
Expand Down
8 changes: 0 additions & 8 deletions mxq_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ void *realloc_forever(void *ptr, size_t size)
} while (1);
}

void mxq_free_job(struct mxq_job_full *job)
{
if (!job)
return;

free(job);
}

char **strvec_new(void)
{
char **strvec;
Expand Down
4 changes: 0 additions & 4 deletions mxq_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
#include <string.h>
#include <mysql.h>

#include "mxq.h"

char *mxq_hostname(void);

void mxq_free_job(struct mxq_job_full *job);

char **stringtostringvec(int argc, char *s);
char *stringvectostring(int argc, char *argv[]);
int chrcnt(char *s, char c);
Expand Down
1 change: 0 additions & 1 deletion mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "mx_util.h"
#include "mx_log.h"

#include "mxq.h"
#include "mxq_group.h"
#include "mxq_job.h"
#include "mxq_mysql.h"
Expand Down
2 changes: 2 additions & 0 deletions mxqdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "mxq_mysql.h"
#include "mx_getopt.h"

#include "mxq_group.h"

#ifndef MXQ_VERSION
#define MXQ_VERSION "0.00"
#endif
Expand Down
3 changes: 3 additions & 0 deletions mxqkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#include "mxq_mysql.h"
#include "mx_getopt.h"

#include "mxq_group.h"
#include "mxq_job.h"

#ifndef MXQ_VERSION
#define MXQ_VERSION "0.00"
#endif
Expand Down

0 comments on commit ab0776b

Please sign in to comment.