From fc12632b55e659b7dcbf8f91a3da2a50495117bd Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Thu, 24 Mar 2016 19:14:49 +0000 Subject: [PATCH] Remove unnecessary Location constructor --- src/backend/metadata/location.cpp | 2 -- src/backend/metadata/location.h | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/metadata/location.cpp b/src/backend/metadata/location.cpp index 16f97619..ce68a6d3 100644 --- a/src/backend/metadata/location.cpp +++ b/src/backend/metadata/location.cpp @@ -31,8 +31,6 @@ using namespace std; namespace loot { Location::Location() {} - Location::Location(const std::string& url) : _url(url) {} - Location::Location(const std::string& url, const std::string& name) : _url(url), _name(name) {} bool Location::operator < (const Location& rhs) const { diff --git a/src/backend/metadata/location.h b/src/backend/metadata/location.h index 7a2adb91..080d2880 100644 --- a/src/backend/metadata/location.h +++ b/src/backend/metadata/location.h @@ -33,8 +33,7 @@ namespace loot { class Location { public: Location(); - Location(const std::string& url); - Location(const std::string& url, const std::string& name); + Location(const std::string& url, const std::string& name = ""); bool operator < (const Location& rhs) const; bool operator == (const Location& rhs) const;