Skip to content

Commit

Permalink
Drop misc unused variables (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelweghorn authored Oct 15, 2024
1 parent f9b70fa commit 217e131
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cpdb/cpdb-frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ GDBusConnection *cpdbGetDbusConnection()

void cpdbConnectToDBus(cpdb_frontend_obj_t *f)
{
GMainContext *context;
GError *error = NULL;

if ((f->connection = cpdbGetDbusConnection()) == NULL)
Expand Down Expand Up @@ -492,12 +491,8 @@ void cpdbStopListingPrinters(cpdb_frontend_obj_t *f){
PrintBackend *cpdbCreateBackend(GDBusConnection *connection,
const char *service_name)
{
FILE *file = NULL;
PrintBackend *proxy;
GError *error = NULL;
char *path;
const char *info_dir_name;
char obj_path[CPDB_BSIZE];

proxy = print_backend_proxy_new_sync(connection,
0,
Expand Down Expand Up @@ -759,7 +754,7 @@ cpdb_printer_obj_t *cpdbGetDefaultPrinter(cpdb_frontend_obj_t *f)
GHashTableIter iter;
char *conf_dir, *path, *printer_id, *backend_name;
cpdb_printer_obj_t *default_printer = NULL;
GList *printer, *user_printers, *system_printers, *printers = NULL;
GList *printer, *printers = NULL;

if (f->num_printers == 0 || f->num_backends == 0)
{
Expand Down Expand Up @@ -2160,7 +2155,6 @@ void cpdbUnpackJobArray(GVariant *var,
char *backend_name)
{
int i;
char *str;
GVariantIter *iter;
g_variant_get(var, CPDB_JOB_ARRAY_ARGS, &iter);
int size;
Expand Down Expand Up @@ -2206,7 +2200,6 @@ void cpdbUnpackOptions(int num_options,
{
cpdb_option_t *opt;
cpdb_media_t *media;
char buf[CPDB_BSIZE];
int i, j, num, width, length, l, r, t, b;
GVariantIter *iter, *sub_iter;
char *str, *name, *def, *group;
Expand Down

0 comments on commit 217e131

Please sign in to comment.