| Index: net/cert/internal/trust_store.cc
|
| diff --git a/net/cert/internal/trust_store.cc b/net/cert/internal/trust_store.cc
|
| index 726806b3f6abd9d6683ebf915696ab78c3ae9061..7540cfdab8bd499be857c9676c9da402405580dc 100644
|
| --- a/net/cert/internal/trust_store.cc
|
| +++ b/net/cert/internal/trust_store.cc
|
| @@ -4,8 +4,6 @@
|
|
|
| #include "net/cert/internal/trust_store.h"
|
|
|
| -#include "base/memory/ptr_util.h"
|
| -
|
| namespace net {
|
|
|
| scoped_refptr<TrustAnchor> TrustAnchor::CreateFromCertificateNoConstraints(
|
| @@ -36,27 +34,9 @@ TrustAnchor::TrustAnchor(scoped_refptr<ParsedCertificate> cert,
|
| DCHECK(cert_);
|
| }
|
|
|
| -TrustAnchor::~TrustAnchor() {}
|
| -
|
| -TrustStore::TrustStore() {}
|
| -TrustStore::~TrustStore() {}
|
| -
|
| -void TrustStore::Clear() {
|
| - anchors_.clear();
|
| -}
|
| +TrustAnchor::~TrustAnchor() = default;
|
|
|
| -void TrustStore::AddTrustAnchor(scoped_refptr<TrustAnchor> anchor) {
|
| - // TODO(mattm): should this check for duplicate anchors?
|
| - anchors_.insert(std::make_pair(anchor->normalized_subject().AsStringPiece(),
|
| - std::move(anchor)));
|
| -}
|
| -
|
| -void TrustStore::FindTrustAnchorsByNormalizedName(
|
| - const der::Input& normalized_name,
|
| - TrustAnchors* matches) const {
|
| - auto range = anchors_.equal_range(normalized_name.AsStringPiece());
|
| - for (auto it = range.first; it != range.second; ++it)
|
| - matches->push_back(it->second);
|
| -}
|
| +TrustStore::TrustStore() = default;
|
| +TrustStore::~TrustStore() = default;
|
|
|
| } // namespace net
|
|
|