Remove checksums and reference tracking; I think they are not needed.
[cumulus.git] / store.h
diff --git a/store.h b/store.h
index 6fec763..a9d6365 100644 (file)
--- a/store.h
+++ b/store.h
@@ -59,7 +59,6 @@ public:
 private:
     size_t size;
     std::string segment_name;
-    std::ostringstream checksums;
     TAR *t;
 };
 
@@ -74,8 +73,7 @@ public:
     // used to control object placement; objects with different group
     // parameters are kept in separate segments.
     std::string write_object(const char *data, size_t len,
-                             const std::string &group = "",
-                             const std::list<std::string> &refs = norefs);
+                             const std::string &group = "");
 
     // Ensure all segments have been fully written.
     void sync();
@@ -91,10 +89,6 @@ private:
     std::string path;
     std::map<std::string, struct segment_info *> segments;
 
-    // An empty list which can be used as an argument to write_object to
-    // indicate that this object depends on no others.
-    static std::list<std::string> norefs;
-
     // Ensure that all segments in the given group have been fully written.
     void close_segment(const std::string &group);
 
@@ -132,12 +126,6 @@ public:
     // segment.  Until that time, its name cannot be determined.
     std::string get_name() const { return name; }
 
-    // Logically, one object may reference other objects (such as a metadata
-    // listing referncing actual file data blocks).  Such references should be
-    // noted explicitly.  It may eventually be used to build up a tree of
-    // checksums for later verifying integrity.
-    void add_reference(const LbsObject *o);
-
 private:
     std::string group;
     const char *data;