Index: src/startup-data-util.cc |
diff --git a/src/startup-data-util.cc b/src/startup-data-util.cc |
index 4e0ad97a0cf6cc67b02adab929d73199c0852043..7c6d9ebf216ffa556a0a1f2c36ff6469deb4a305 100644 |
--- a/src/startup-data-util.cc |
+++ b/src/startup-data-util.cc |
@@ -7,6 +7,7 @@ |
#include <stdlib.h> |
#include <string.h> |
+#include "src/base/file-utils.h" |
#include "src/base/logging.h" |
#include "src/base/platform/platform.h" |
#include "src/utils.h" |
@@ -77,27 +78,6 @@ void LoadFromFiles(const char* natives_blob, const char* snapshot_blob) { |
atexit(&FreeStartupData); |
} |
- |
-char* RelativePath(char** buffer, const char* exec_path, const char* name) { |
- DCHECK(exec_path); |
- int path_separator = static_cast<int>(strlen(exec_path)) - 1; |
- while (path_separator >= 0 && |
- !base::OS::isDirectorySeparator(exec_path[path_separator])) { |
- path_separator--; |
- } |
- if (path_separator >= 0) { |
- int name_length = static_cast<int>(strlen(name)); |
- *buffer = |
- reinterpret_cast<char*>(calloc(path_separator + name_length + 2, 1)); |
- *buffer[0] = '\0'; |
- strncat(*buffer, exec_path, path_separator + 1); |
- strncat(*buffer, name, name_length); |
- } else { |
- *buffer = strdup(name); |
- } |
- return *buffer; |
-} |
- |
} // namespace |
#endif // V8_USE_EXTERNAL_STARTUP_DATA |