Author: cazfi
Date: Sat Jun 11 14:11:00 2016
New Revision: 32824

URL: http://svn.gna.org/viewcvs/freeciv?rev=32824&view=rev
Log:
Removed unnecessary NULL check from tile_extras()

See patch #7183

Modified:
    trunk/common/tile.h

Modified: trunk/common/tile.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/tile.h?rev=32824&r1=32823&r2=32824&view=diff
==============================================================================
--- trunk/common/tile.h (original)
+++ trunk/common/tile.h Sat Jun 11 14:11:00 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
@@ -114,11 +114,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

Reply via email to