Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1613)

Unified Diff: chrome/browser/safe_browsing/safe_browsing_util.cc

Issue 6151010: Remove the unused enlarge. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_util.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_util.cc (revision 71380)
+++ chrome/browser/safe_browsing/safe_browsing_util.cc (working copy)
@@ -111,16 +111,6 @@
return sizeof(Data) + prefix_count * PrefixSize(type);
}
-SBEntry* SBEntry::Enlarge(int extra_prefixes) {
- int new_prefix_count = prefix_count() + extra_prefixes;
- SBEntry* rv = SBEntry::Create(type(), new_prefix_count);
- memcpy(rv, this, Size()); // NOTE: Blows away rv.data_!
- // We have to re-set |rv|'s prefix count since we just copied our own over it.
- rv->set_prefix_count(new_prefix_count);
- Destroy();
- return rv;
-}
-
int SBEntry::ChunkIdAtPrefix(int index) const {
if (type() == SUB_PREFIX)
return sub_prefixes_[index].add_chunk;
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698