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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/event_router.cc

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for realz Created 7 years, 1 month 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
Index: chrome/browser/chromeos/extensions/file_manager/event_router.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.cc b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
index 39714efa619ff4e3b8599da61df0ba6fd7b86434..675e444add05d3de9462dd9e95c1de4be9a314a5 100644
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
@@ -54,10 +54,6 @@ namespace {
const char kPathChanged[] = "changed";
const char kPathWatchError[] = "error";
-// Used as a callback for FileSystem::MarkCacheFileAsUnmounted().
-void OnMarkAsUnmounted(drive::FileError error) {
- // Do nothing.
-}
void DirectoryExistsOnBlockingPool(const base::FilePath& directory_path,
const base::Closure& success_callback,
const base::Closure& failure_callback) {
@@ -82,23 +78,6 @@ void DirectoryExistsOnUIThread(const base::FilePath& directory_path,
failure_callback));
};
-// Creates a base::FilePathWatcher and starts watching at |watch_path| with
-// |callback|. Returns NULL on failure.
-base::FilePathWatcher* CreateAndStartFilePathWatcher(
- const base::FilePath& watch_path,
- const base::FilePathWatcher::Callback& callback) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
- DCHECK(!callback.is_null());
-
- base::FilePathWatcher* watcher(new base::FilePathWatcher);
- if (!watcher->Watch(watch_path, false /* recursive */, callback)) {
- delete watcher;
- return NULL;
- }
-
- return watcher;
-}
-
// Constants for the "transferState" field of onFileTransferUpdated event.
const char kFileTransferStateStarted[] = "started";
const char kFileTransferStateInProgress[] = "in_progress";
@@ -114,11 +93,6 @@ bool IsUploadJob(drive::JobType type) {
type == drive::TYPE_UPLOAD_EXISTING_FILE);
}
-// Utility function to check if |job_info| is a file downloading job.
-bool IsDownloadJob(drive::JobType type) {
- return type == drive::TYPE_DOWNLOAD_FILE;
-}
-
// Converts the job info to its JSON (Value) form.
scoped_ptr<base::DictionaryValue> JobInfoToDictionaryValue(
const std::string& extension_id,
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.cc ('k') | chrome/browser/chromeos/login/login_display_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698