summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 17:38:31 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 17:38:31 +0000
commit61899d3915693df7dbc8c5bdaa6e8ae4ba3931d0 (patch)
treefead65e8733d8eff08cccb9ca2d45079fd632691 /base/file_util.h
parentb8e58b6d17f0ceb74f5ec6b6bcfc0b3e863599cc (diff)
downloadchromium_src-61899d3915693df7dbc8c5bdaa6e8ae4ba3931d0.zip
chromium_src-61899d3915693df7dbc8c5bdaa6e8ae4ba3931d0.tar.gz
chromium_src-61899d3915693df7dbc8c5bdaa6e8ae4ba3931d0.tar.bz2
Reverting 8722,8721.
Review URL: http://codereview.chromium.org/19024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/base/file_util.h b/base/file_util.h
index c546b9a..4154856 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -24,7 +24,6 @@
#include <vector>
#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
#include "base/file_path.h"
namespace file_util {
@@ -319,10 +318,6 @@ FILE* OpenFile(const std::wstring& filename, const char* mode);
// Closes file opened by OpenFile. Returns true on success.
bool CloseFile(FILE* file);
-// Truncates an open file to end at the location of the current file pointer.
-// This is a cross-platform analog to Windows' SetEndOfFile() function.
-bool TruncateFile(FILE* file);
-
// Reads the given number of bytes from the file into the buffer. Returns
// the number of read bytes, or -1 on error.
int ReadFile(const std::wstring& filename, char* data, int size);
@@ -341,18 +336,6 @@ bool SetCurrentDirectory(const FilePath& path);
// Deprecated temporary compatibility function.
bool SetCurrentDirectory(const std::wstring& current_directory);
-// A class to handle auto-closing of FILE*'s.
-class ScopedFILEClose {
- public:
- inline void operator()(FILE* x) const {
- if (x) {
- fclose(x);
- }
- }
-};
-
-typedef scoped_ptr_malloc<FILE, ScopedFILEClose> ScopedFILE;
-
// A class for enumerating the files in a provided path. The order of the
// results is not guaranteed.
//