Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4019 closed Enhancement (fixed)

kill useless casts

Reported by: jlouis Owned by: jlouis
Priority: Normal Milestone: 2.22
Component: Transmission Version: 2.20
Severity: Minor Keywords:
Cc:

Description

Using the Coccinelle tool (http://coccinelle.lip6.fr/) is is quite easy to come up with janitorial scripts. Here we have run over the source to find useless casts (casts that are redundant due to the type of casted expression.

@@
type T;
T E;
@@

-     (T)
      E

Attachments (1)

useless_cast.patch (6.6 KB) - added by jlouis 11 years ago.
Apply with -p1

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by jlouis

Apply with -p1

comment:1 Changed 11 years ago by jordan

  • Milestone changed from None Set to 2.22
  • Owner set to jordan
  • Severity changed from Normal to Minor
  • Status changed from new to assigned

Fixed in r11881

comment:2 Changed 11 years ago by jordan

  • Owner changed from jordan to jlouis
  • Status changed from assigned to new

comment:3 Changed 11 years ago by jordan

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 11 years ago by livings124

  • Summary changed from Minor patch, kill useless casts in transmission source. to kill useless casts

comment:5 Changed 11 years ago by jordan

r12032 /branches/2.2x/ (7 files in 2 dirs): (2.2x) backport r11881 for #4019 "kill useless casts" -- patch from jlouis

Note: See TracTickets for help on using tickets.