]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved StoreMapSlice declaration and ctor definition into StoreMap.h
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 17 Jan 2013 04:25:35 +0000 (21:25 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 17 Jan 2013 04:25:35 +0000 (21:25 -0700)
as too small/trivial to warrant dedicated source files.

src/ipc/Makefile.am
src/ipc/StoreMap.h
src/ipc/StoreMapSlice.cc [deleted file]
src/ipc/StoreMapSlice.h [deleted file]

index cf4932cc6d234ba115c53cfb10892da80c50d835..3a08d6ea465c09260dd00793edba435d26b0cb2c 100644 (file)
@@ -21,8 +21,6 @@ libipc_la_SOURCES = \
        StartListening.h \
        StoreMap.cc \
        StoreMap.h \
-       StoreMapSlice.cc \
-       StoreMapSlice.h \
        StrandCoord.cc \
        StrandCoord.h \
        StrandCoords.h \
index bacdad0276b69cb56369aba1d91b24a1c4fc5a7c..a8975301fb0aa2c040cfa6a069f5fa35a83f2be4 100644 (file)
@@ -1,14 +1,27 @@
 #ifndef SQUID_IPC_STORE_MAP_H
 #define SQUID_IPC_STORE_MAP_H
 
+#include "typedefs.h"
 #include "ipc/ReadWriteLock.h"
 #include "ipc/mem/FlexibleArray.h"
 #include "ipc/mem/Pointer.h"
-#include "ipc/StoreMapSlice.h"
 
 namespace Ipc
 {
 
+typedef uint32_t StoreMapSliceId;
+
+/// a piece of Store entry, linked to other pieces, forming a chain
+class StoreMapSlice
+{
+public:
+    StoreMapSlice(): next(0), size(0) {}
+
+    StoreMapSliceId next; ///< ID of the next slice occupied by the entry
+    uint32_t size; ///< slice contents size
+};
+
+
 /// Maintains shareable information about a StoreEntry as a whole.
 /// An anchor points to one or more StoreEntry slices. This is the
 /// only lockable part of shared StoreEntry information, providing
diff --git a/src/ipc/StoreMapSlice.cc b/src/ipc/StoreMapSlice.cc
deleted file mode 100644 (file)
index e6b4c1f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * DEBUG: section 54    Interprocess Communication
- */
-
-#include "squid.h"
-#include "ipc/StoreMapSlice.h"
-#include "tools.h"
-
-Ipc::StoreMapSlice::StoreMapSlice()
-{
-    memset(this, 0, sizeof(*this));
-}
diff --git a/src/ipc/StoreMapSlice.h b/src/ipc/StoreMapSlice.h
deleted file mode 100644 (file)
index 1ba775a..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef SQUID_IPC_STORE_MAP_SLICE_H
-#define SQUID_IPC_STORE_MAP_SLICE_H
-
-#include "typedefs.h"
-
-namespace Ipc
-{
-
-typedef uint32_t StoreMapSliceId;
-
-/// a piece of Store entry, linked to other pieces, forming a chain
-class StoreMapSlice
-{
-public:
-    StoreMapSlice(): next(0), /* location(0), */ size(0) {}
-
-    StoreMapSliceId next; ///< ID of the next slice occupied by the entry
-//    uint32_t location; ///< slice contents location
-    uint32_t size; ///< slice contents size
-};
-
-} // namespace Ipc
-
-#endif /* SQUID_IPC_STORE_MAP_SLICE_H */