summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 21:21:40 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 21:21:40 +0000
commit330b21429e0c95861ee31fbae3bd6a17f364eb36 (patch)
treedc60ed63e8c7a4f345a22e58694632cfaeadb15b /ui
parente26c55c9ee9ada69c7aca6d239d650a98a96a35b (diff)
downloadchromium_src-330b21429e0c95861ee31fbae3bd6a17f364eb36.zip
chromium_src-330b21429e0c95861ee31fbae3bd6a17f364eb36.tar.gz
chromium_src-330b21429e0c95861ee31fbae3bd6a17f364eb36.tar.bz2
Coverity: Remove dead code in gfx::PathProvider().
BUG=none TEST=none CID=8818 Review URL: http://codereview.chromium.org/7217016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/gfx_paths.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/ui/gfx/gfx_paths.cc b/ui/gfx/gfx_paths.cc
index aaff978..6fe4789 100644
--- a/ui/gfx/gfx_paths.cc
+++ b/ui/gfx/gfx_paths.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -12,10 +12,6 @@
namespace gfx {
bool PathProvider(int key, FilePath* result) {
- // Assume that we will not need to create the directory if it does not exist.
- // This flag can be set to true for the cases where we want to create it.
- bool create_dir = false;
-
FilePath cur;
switch (key) {
// The following are only valid in the development environment, and
@@ -35,10 +31,6 @@ bool PathProvider(int key, FilePath* result) {
return false;
}
- if (create_dir && !file_util::PathExists(cur) &&
- !file_util::CreateDirectory(cur))
- return false;
-
*result = cur;
return true;
}