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

Unified Diff: chrome/browser/sessions/base_session_service.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 3 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/metrics/metrics_log.cc ('k') | chrome/browser/sync/glue/sync_backend_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/base_session_service.cc
diff --git a/chrome/browser/sessions/base_session_service.cc b/chrome/browser/sessions/base_session_service.cc
index b89c6a31e64c38edc8914e8113c33e5d97293ab2..7f3385e102ec83d6451eb730a6792ed1029491e6 100644
--- a/chrome/browser/sessions/base_session_service.cc
+++ b/chrome/browser/sessions/base_session_service.cc
@@ -52,18 +52,6 @@ void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
}
}
-// string16 version of WriteStringToPickle.
-void WriteString16ToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
- const string16& str) {
- int num_bytes = str.size() * sizeof(char16);
- if (*bytes_written + num_bytes < max_bytes) {
- *bytes_written += num_bytes;
- pickle.WriteString16(str);
- } else {
- pickle.WriteString16(string16());
- }
-}
-
} // namespace
// Delay between when a command is received, and when we save it to the
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/sync/glue/sync_backend_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698