Author: cazfi Date: Sat Jun 11 14:11:07 2016 New Revision: 32825 URL: http://svn.gna.org/viewcvs/freeciv?rev=32825&view=rev Log: Removed unnecessary NULL check from tile_extras()
See patch #7183 Modified: branches/S2_6/common/tile.h Modified: branches/S2_6/common/tile.h URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/tile.h?rev=32825&r1=32824&r2=32825&view=diff ============================================================================== --- branches/S2_6/common/tile.h (original) +++ branches/S2_6/common/tile.h Sat Jun 11 14:11:07 2016 @@ -1,4 +1,4 @@ -/********************************************************************** +/*********************************************************************** Freeciv - Copyright (C) 2005 - The Freeciv Project 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 @@ -112,11 +112,6 @@ const bv_extras *tile_extras_null(void); static inline const bv_extras *tile_extras(const struct tile *ptile) { - /* With this NULL check this function is actually same as tile_extras_safe(). - * We may remove the check later when callers that need _safe(), do so. */ - if (ptile == NULL) { - return tile_extras_null(); - } return &(ptile->extras); } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits