summaryrefslogtreecommitdiff
path: root/src/name_format.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-01 00:47:53 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-01 00:47:53 +0100
commitd46f9684e7c4a77d07b4bb6f4b8c85dba2584597 (patch)
tree4ddeb09847f93600301422394936d544de9eba7d /src/name_format.h
parent11990d194b5071b7f57ead972369dd9598f04ca3 (diff)
Simplify NameFormat stuff.
Diffstat (limited to 'src/name_format.h')
-rw-r--r--src/name_format.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/name_format.h b/src/name_format.h
index 7eb2713f..7390dd5c 100644
--- a/src/name_format.h
+++ b/src/name_format.h
@@ -43,9 +43,11 @@ namespace dcp {
class NameFormat
{
public:
- std::list<char> components () const {
- return _components;
- }
+ NameFormat () {}
+
+ NameFormat (std::string specification)
+ : _specification (specification)
+ {}
std::string specification () const {
return _specification;
@@ -59,18 +61,7 @@ public:
std::string get (Map) const;
-protected:
- NameFormat () {}
-
- NameFormat (std::string specification)
- : _specification (specification)
- {}
-
- void add (char placeholder);
-
private:
- /** placeholders for each component */
- std::list<char> _components;
std::string _specification;
};