diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index a712f9dfd9..62f01ab07e 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -115,26 +115,6 @@ inline void RemoveIf( Container& c, Predicate p ) c.erase( remove_if(c.begin(), c.end(), p), c.end() ); } -/* Cast between types through a union, to avoid type-punning problems in gcc. */ -template -TO &CastSimilarTypes( FROM &val ) -{ - union conv_union - { - TO to; - FROM from; - }; - - conv_union &u = (conv_union &) val; - return u.to; -} - -template -int &UnionCast( T &e ) -{ - return CastSimilarTypes(e); -} - /* Helper for ConvertValue(). */ template struct ConvertValueHelper