[gvfs] cdda: Remove unneeded function argument



commit aac8860e2f2d7c39f1c5d9f19a4c650771fc1c6e
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 14 11:34:07 2013 +0100

    cdda: Remove unneeded function argument
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695835

 daemon/gvfsbackendcdda.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gvfsbackendcdda.c b/daemon/gvfsbackendcdda.c
index ff28637..82040da 100644
--- a/daemon/gvfsbackendcdda.c
+++ b/daemon/gvfsbackendcdda.c
@@ -545,7 +545,7 @@ do_unmount (GVfsBackend *backend,
 
 /* returns -1 if we couldn't map */
 static int
-get_track_num_from_name (GVfsBackendCdda *cdda_backend, const char *filename)
+get_track_num_from_name (const char *filename)
 {
   int n;
   char *basename;
@@ -715,7 +715,7 @@ do_open_for_read (GVfsBackend *backend,
 
   read_handle = g_new0 (ReadHandle, 1);
 
-  track_num = get_track_num_from_name (cdda_backend, job->filename);
+  track_num = get_track_num_from_name (job->filename);
   if (track_num == -1)
     {
       error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, 
@@ -1002,7 +1002,7 @@ do_query_info (GVfsBackend *backend,
       g_file_info_set_name (info, filename);
       g_file_info_set_display_name (info, filename);
       
-      track_num = get_track_num_from_name (cdda_backend, filename);
+      track_num = get_track_num_from_name (filename);
       if (track_num == -1)
         {
           error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("No such file"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]