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

Unified Diff: runtime/bin/file_win.cc

Issue 12464013: dart:io | Fix stray code committed to Windows platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_win.cc
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
index 92c7c157fb94113d05f0c90342f71a64f026cce3..5d78d197e69acccb7802a4b3ec9512ae298be337 100644
--- a/runtime/bin/file_win.cc
+++ b/runtime/bin/file_win.cc
@@ -272,22 +272,7 @@ File::StdioHandleType File::GetStdioHandleType(int fd) {
File::Type File::GetType(const char* pathname, bool follow_links) {
- struct _stat entry_info;
- const wchar_t* system_name = StringUtils::Utf8ToWide(pathname);
- // TODO(whesse): We need to use FileGetAttributes here, and more complex
- // checks.
- int stat_success = _wstat(system_name, &st);
- free(const_cast<wchar_t*>(system_name));
- if (stat_success == -1) return File::kDoesNotExist;
- if (S_ISDIR(entry_info.st_mode)) return File::kIsDirectory;
- if (S_ISREG(entry_info.st_mode)) return File::kIsFile;
- // if (S_ISLNK(entry_info.st_mode)) return File::kIsLink;
return File::kDoesNotExist;
}
- struct _stat st;
- const wchar_t* system_name = StringUtils::Utf8ToWide(name);
- int stat_status = _wstat(system_name, &st);
- free(const_cast<wchar_t*>(system_name));
-
#endif // defined(TARGET_OS_WINDOWS)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698