Skip to content

Commit

Permalink
Fix redundant name property
Browse files Browse the repository at this point in the history
  • Loading branch information
SupSuper committed Mar 27, 2021
1 parent f46d7f2 commit 1beb034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Mod/City.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ namespace OpenXcom
* @param lon Longitude of the city.
* @param lat Latitude of the city.
*/
City::City(const std::string &name, double lon, double lat): Target(), _name(name)
City::City(const std::string &name, double lon, double lat) : Target()
{
_name = name;
_lon = lon;
_lat = lat;
}
Expand Down
2 changes: 0 additions & 2 deletions src/Mod/City.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ class Language;
class City : public Target
{
private:
std::string _name;

/// Gets the city's type (unused).
std::string getType() const { return ""; }
public:
Expand Down

0 comments on commit 1beb034

Please sign in to comment.