[gparted] Fix unused parameter compiler warning



commit 55b71a77bccd2383869f981e059e87e9f90fead8
Author: Curtis Gedak <gedakc gmail com>
Date:   Sat Jul 16 09:49:46 2011 -0600

    Fix unused parameter compiler warning
    
    Removed unused parameter.  Prior to this change the compiler would
    complain with the following message:
    
    error: unused parameter âcylinder_sizeâ

 include/Dialog_Partition_New.h |    3 +--
 src/Dialog_Partition_New.cc    |    1 -
 src/Win_GParted.cc             |    1 -
 3 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/include/Dialog_Partition_New.h b/include/Dialog_Partition_New.h
index 4178433..7711edf 100644
--- a/include/Dialog_Partition_New.h
+++ b/include/Dialog_Partition_New.h
@@ -1,5 +1,5 @@
 /* Copyright (C) 2004 Bart
- * Copyright (C) 2008, 2009, 2010 Curtis Gedak
+ * Copyright (C) 2008, 2009, 2010, 2011 Curtis Gedak
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -35,7 +35,6 @@ public:
 		       unsigned short new_count,
 		       const std::vector<FS> & FILESYSTEMS,
 		       bool only_unformatted,
-		       Sector cylinder_size,
 		       Glib::ustring disktype );
 	Partition Get_New_Partition( Byte_Value sector_size ) ;//overridden function
 
diff --git a/src/Dialog_Partition_New.cc b/src/Dialog_Partition_New.cc
index 75e6deb..0a73368 100644
--- a/src/Dialog_Partition_New.cc
+++ b/src/Dialog_Partition_New.cc
@@ -37,7 +37,6 @@ void Dialog_Partition_New::Set_Data( const Partition & partition,
 				     unsigned short new_count, 
 				     const std::vector<FS> & FILESYSTEMS,
 				     bool only_unformatted,
-				     Sector cylinder_size,
 				     Glib::ustring disktype )
 {
 	this ->new_count = new_count;
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index cd8ecaa..4f29ada 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1569,7 +1569,6 @@ void Win_GParted::activate_new()
 				  new_count,
 				  gparted_core .get_filesystems(),
 				  devices[ current_device ] .readonly,
-				  devices[ current_device ] .cylsize,
 				  devices[ current_device ] .disktype ) ;
 		
 		dialog .set_transient_for( *this );



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