| Index: src/startup-data-util.cc
|
| diff --git a/src/startup-data-util.cc b/src/startup-data-util.cc
|
| index 4e0ad97a0cf6cc67b02adab929d73199c0852043..3c50ea27e497c742c894ec9d6745b39147213c28 100644
|
| --- a/src/startup-data-util.cc
|
| +++ b/src/startup-data-util.cc
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "src/base/logging.h"
|
| #include "src/base/platform/platform.h"
|
| +#include "src/file-utils.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
|
|
|
|
|