]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/stub_MemObject.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / tests / stub_MemObject.cc
index 92944a6ed1b2252a33b98837080b8b7d5089e911..ed276878b40e8b6e7001bec01255e72ac88ca329 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -29,27 +29,11 @@ MemObject::endOffset() const
 void MemObject::trimSwappable() STUB
 void MemObject::trimUnSwappable() STUB
 int64_t MemObject::policyLowestOffsetToKeep(bool swap) const STUB_RETVAL(-1)
-MemObject::MemObject() :
-    inmem_lo(0),
-    nclients(0),
-    request(NULL),
-    ping_reply_callback(NULL),
-    ircb_data(NULL),
-    id(0),
-    object_sz(-1),
-    swap_hdr_sz(0),
-    _reply(NULL)
-{
-    memset(&clients, 0, sizeof(clients));
+MemObject::MemObject() {
+    ping_reply_callback = nullptr;
     memset(&start_ping, 0, sizeof(start_ping));
-    memset(&abort, 0, sizeof(abort));
 } // NOP instead of elided due to Store
 
-HttpReply const * MemObject::getReply() const
-{
-    // XXX: required by testStore
-    return NULL;
-}
 const char *MemObject::storeId() const STUB_RETVAL(NULL)
 const char *MemObject::logUri() const STUB_RETVAL(NULL)
 void MemObject::setUris(char const *aStoreId, char const *aLogUri, const HttpRequestMethod &aMethod) STUB
@@ -62,9 +46,7 @@ int MemObject::mostBytesWanted(int max, bool ignoreDelayPools) const STUB_RETVAL
 #if USE_DELAY_POOLS
 DelayId MemObject::mostBytesAllowed() const STUB_RETVAL(DelayId())
 #endif
-void MemObject::unlinkRequest() STUB
 void MemObject::write(const StoreIOBuffer &writeBuffer) STUB
-void MemObject::replaceHttpReply(HttpReply *newrep) STUB
 int64_t MemObject::lowestMemReaderOffset() const STUB_RETVAL(0)
 void MemObject::kickReads() STUB
 int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0)