This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold][patch] Remove unused arguments
- From: Rafael Espindola <espindola at google dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Ian Lance Taylor <iant at google dot com>, Mikolaj Zalewski <mikolajz at google dot com>
- Date: Wed, 2 Dec 2009 13:09:48 -0500
- Subject: [gold][patch] Remove unused arguments
I am checking this in. I think we never got an warning for it because these
templates have never been instantiated before.
2009-12-02 Rafael Avila de Espindola <espindola@google.com>
* incremental.cc (Incremental_inputs_entry): Remove unused argument
from the get_* methods.
Cheers,
--
Rafael Ãvila de EspÃndola
diff --git a/gold/incremental.cc b/gold/incremental.cc
index e89372a..4af4ef3 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
@@ -129,27 +129,27 @@ class Incremental_inputs_entry
static const int data_size = sizeof(Data_type);
elfcpp::Elf_Word
- get_filename_offset(elfcpp::Elf_Word v)
+ get_filename_offset()
{ return Convert<32, big_endian>::convert_host(this->p_->filename_offset); }
elfcpp::Elf_Word
- get_data_offset(elfcpp::Elf_Word v)
+ get_data_offset()
{ return Convert<32, big_endian>::convert_host(this->p_->data_offset); }
elfcpp::Elf_Xword
- get_timestamp_sec(elfcpp::Elf_Xword v)
+ get_timestamp_sec()
{ return Convert<64, big_endian>::convert_host(this->p_->timestamp_sec); }
elfcpp::Elf_Word
- get_timestamp_nsec(elfcpp::Elf_Word v)
+ get_timestamp_nsec()
{ return Convert<32, big_endian>::convert_host(this->p_->timestamp_nsec); }
elfcpp::Elf_Word
- get_input_type(elfcpp::Elf_Word v)
+ get_input_type()
{ return Convert<32, big_endian>::convert_host(this->p_->input_type); }
elfcpp::Elf_Word
- get_reserved(elfcpp::Elf_Word v)
+ get_reserved()
{ return Convert<32, big_endian>::convert_host(this->p_->reserved); }
private: