~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/blob.cc

  • Committer: Monty Taylor
  • Date: 2009-01-23 06:03:42 UTC
  • mto: (801.1.3 testable) (779.3.2 devel)
  • mto: This revision was merged to the branch mainline in revision 811.
  • Revision ID: mordred@inaugust.com-20090123060342-i00afsgar78qz3nu
Got rid of __attribute__((unused)) and the like from the .cc files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
void Field_blob::store_length(unsigned char *i_ptr,
60
60
                              uint32_t i_packlength,
61
61
                              uint32_t i_number,
62
 
                              bool low_byte_first __attribute__((unused)))
 
62
                              bool )
63
63
{
64
64
  switch (i_packlength) {
65
65
  case 1:
100
100
 
101
101
uint32_t Field_blob::get_length(const unsigned char *pos,
102
102
                              uint32_t packlength_arg,
103
 
                              bool low_byte_first __attribute__((unused)))
 
103
                              bool )
104
104
{
105
105
  switch (packlength_arg) {
106
106
  case 1:
301
301
  return my_strntoll(charset(),blob,length,10,NULL,&not_used);
302
302
}
303
303
 
304
 
String *Field_blob::val_str(String *val_buffer __attribute__((unused)),
 
304
String *Field_blob::val_str(String *,
305
305
                            String *val_ptr)
306
306
{
307
307
  char *blob;
590
590
 
591
591
   @return  New pointer into memory based on from + length of the data
592
592
*/
593
 
const unsigned char *Field_blob::unpack(unsigned char *to __attribute__((unused)),
 
593
const unsigned char *Field_blob::unpack(unsigned char *,
594
594
                                const unsigned char *from,
595
595
                                uint32_t param_data,
596
596
                                bool low_byte_first)
653
653
 
654
654
unsigned char *
655
655
Field_blob::pack_key(unsigned char *to, const unsigned char *from, uint32_t max_length,
656
 
                     bool low_byte_first __attribute__((unused)))
 
656
                     bool )
657
657
{
658
658
  unsigned char *save= ptr;
659
659
  ptr= (unsigned char*) from;
698
698
 
699
699
const unsigned char *
700
700
Field_blob::unpack_key(unsigned char *to, const unsigned char *from, uint32_t max_length,
701
 
                       bool low_byte_first __attribute__((unused)))
 
701
                       bool )
702
702
{
703
703
  /* get length of the blob key */
704
704
  uint32_t length= *from++;
723
723
 
724
724
unsigned char *
725
725
Field_blob::pack_key_from_key_image(unsigned char *to, const unsigned char *from, uint32_t max_length,
726
 
                                    bool low_byte_first __attribute__((unused)))
 
726
                                    bool )
727
727
{
728
728
  uint32_t length=uint2korr(from);
729
729
  if (length > max_length)