Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] map_same_continent().
Home

[Freeciv-Dev] map_same_continent().

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] map_same_continent().
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Wed, 19 Sep 2001 01:55:44 +0200

The function map_same_continent() is used only 7 places in the code.
Its sole task is to call map_get_continent() twice and compare the
results.

On the other hand, there are lots of places that do exactly the same
thing manually, either directly or by caching one of the results in a
variable.

As such, I do not believe that map_same_continent() serves any
appreciable purpose other than save a few characters' worth of screen
real estate in just a couple of functions.  Therefore, I propose to
remove it entirely, so that future generations of Freeciv source
readers will have one less function to digest.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
A wide-eyed, innocent UNICORN, poised delicately in a MEADOW filled with
 LILACS, LOLLIPOPS & small CHILDREN at the HUSH of twilight??


[Prev in Thread] Current Thread [Next in Thread]