diff --git a/modules/printbackends/papi/gtkprintbackendpapi.c b/modules/printbackends/papi/gtkprintbackendpapi.c
index eb16e15..e95c44c 100644
--- a/modules/printbackends/papi/gtkprintbackendpapi.c
+++ b/modules/printbackends/papi/gtkprintbackendpapi.c
@@ -341,17 +341,13 @@ gtk_print_backend_papi_print_stream (GtkPrintBackend        *print_backend,
 				    gpointer                user_data,
 				    GDestroyNotify          dnotify)
 {
-  GError *print_error = NULL;
   GtkPrinterPapi *printer;
   _PrintStreamData *ps;
   GtkPrintSettings *settings;
-  gint argc;  
-  gint in_fd;
-  gchar **argv = NULL; 
   const gchar *title;
   char *prtnm = NULL;
   GtkPrintDuplex val;
-  papi_status_t pstatus = NULL;
+  papi_status_t pstatus;
   papi_attribute_t **attrs = NULL;
   papi_job_ticket_t *ticket = NULL;
   
@@ -545,18 +541,10 @@ static gboolean
 papi_get_printer_list (GtkPrintBackendPapi *papi_backend)
 {
   int i;
-  const char *attributes[] =  /* Attributes we're interested in */
-    {
-      "printer-name",
-      "printer-uri-supported",
-      NULL
-    };
-  papi_status_t status, status2;
+  papi_status_t status;
   papi_service_t service = NULL;
   char **printers = NULL;
-  GtkPrinter *printer;
   GtkPrinterPapi *papi_printer;
-  GList *current_printer_list;
   GtkPrintBackend *backend = GTK_PRINT_BACKEND (papi_backend);
   
   if ((status = papiServiceCreate (&service, NULL, NULL, NULL, NULL,
@@ -577,8 +565,6 @@ papi_get_printer_list (GtkPrintBackendPapi *papi_backend)
   for (i = 0; printers[i] != NULL; i++) 
     {
       GtkPrinter *printer;
-      char *name = NULL, *url = NULL;
-      papi_attribute_t **attrs = NULL;
 
           printer = gtk_print_backend_find_printer (backend, printers[i]);
 
@@ -643,15 +629,12 @@ update_printer_status (GtkPrinter *printer)
 {
   GtkPrintBackend *backend;
   GtkPrinterPapi *papi_printer;
-  gboolean status_changed = FALSE;
 
   backend = gtk_printer_get_backend (printer);
   papi_printer = GTK_PRINTER_PAPI (printer);
 
-  /* if (status_changed) */
-    g_signal_emit_by_name (GTK_PRINT_BACKEND (backend),
-                           "printer-status-changed", printer);
-
+  g_signal_emit_by_name (GTK_PRINT_BACKEND (backend),
+                         "printer-status-changed", printer);
 }
 
 
@@ -663,7 +646,6 @@ papi_printer_get_options (GtkPrinter           *printer,
 {
   GtkPrinterOptionSet *set;
   GtkPrinterOption *option;
-  int i;
   char *print_at[] = { "now", "on-hold" };
   char *n_up[] = {"1"};
 
@@ -722,7 +704,7 @@ papi_printer_prepare_for_print (GtkPrinter       *printer,
   GtkPageSet page_set;
   double scale;
   GtkPaperSize *papersize = NULL;
-  char *ppd_paper_name;
+  const char *ppd_paper_name;
 
   print_job->print_pages = gtk_print_settings_get_print_pages (settings);
   print_job->page_ranges = NULL;
@@ -765,13 +747,6 @@ is_local_printer (gchar *printer_uri)
     return FALSE;
 }
 
-void
-merge_ppd_data (papi_attribute_t ***attributes, gchar *ppdfile)
-{
-  get_ppd_attrs (attributes, ppdfile);
-}
-
-
 static void
 papi_display_printer_status_done (gpointer user_data)
 {
@@ -791,12 +766,11 @@ papi_display_printer_status (gpointer user_data)
 {
   GtkPrinter *printer = (GtkPrinter *) user_data;
   GtkPrinterPapi *papi_printer;
-  gchar *loc, *printer_uri, *ppdfile;
+  gchar *loc;
   int state;
   papi_service_t service;
   papi_attribute_t **attrs = NULL;
   papi_printer_t current_printer = NULL;
-  static int count = 0;
 
   papi_printer = GTK_PRINTER_PAPI (printer);
   if (papiServiceCreate (&service, NULL, NULL, NULL, NULL, PAPI_ENCRYPT_NEVER,
