Index: third_party/WebKit/Source/core/fetch/CachedMetadata.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp b/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp |
deleted file mode 100644 |
index 19b1105a4309c60aa59f8fed21d90510e874759f..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp |
+++ /dev/null |
@@ -1,33 +0,0 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "core/fetch/CachedMetadata.h" |
- |
-namespace blink { |
- |
-CachedMetadata::CachedMetadata(const char* data, size_t size) { |
- // We need to define a local variable to use the constant in DCHECK. |
- constexpr auto kDataStart = CachedMetadata::kDataStart; |
- // Serialized metadata should have non-empty data. |
- DCHECK_GT(size, kDataStart); |
- DCHECK(data); |
- |
- m_serializedData.reserveInitialCapacity(size); |
- m_serializedData.append(data, size); |
-} |
- |
-CachedMetadata::CachedMetadata(uint32_t dataTypeID, |
- const char* data, |
- size_t size) { |
- // Don't allow an ID of 0, it is used internally to indicate errors. |
- DCHECK(dataTypeID); |
- DCHECK(data); |
- |
- m_serializedData.reserveInitialCapacity(sizeof(uint32_t) + size); |
- m_serializedData.append(reinterpret_cast<const char*>(&dataTypeID), |
- sizeof(uint32_t)); |
- m_serializedData.append(data, size); |
-} |
- |
-} // namespace blink |