From 322f02e91e2ec716b5064d7cb3069beb1d2c44a4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 11 May 2014 15:53:51 -0700 Subject: Remove unused constructors, accessors/modifiers to shorten examples --- examples/persistence/position.hxx | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'examples/persistence') diff --git a/examples/persistence/position.hxx b/examples/persistence/position.hxx index 3025a29..26b04f5 100644 --- a/examples/persistence/position.hxx +++ b/examples/persistence/position.hxx @@ -25,13 +25,7 @@ operator>> (std::istream&, object_type&); class position { public: - position (float lat = 0, float lon = 0): lat_ (lat), lon_ (lon) {} - - float - lat () const {return lat_;} - - float - lon () const {return lon_;} + // Constructors as well as accessor and modifiers not shown. // XML persistence. // @@ -49,25 +43,9 @@ private: class object { public: - object (const std::string& name, object_type type, unsigned int id) - : name_ (name), type_ (type), id_ (id) {} - - const std::string& - name () const {return name_;} - - object_type - type () const {return type_;} - - unsigned int - id () const {return id_;} - typedef std::vector positions_type; - positions_type& - positions () {return positions_;} - - const positions_type& - positions () const {return positions_;} + // Constructors as well as accessor and modifiers not shown. // XML persistence. // -- cgit v1.1