diff --git a/vm/os-windows.cpp b/vm/os-windows.cpp index 6870fd3e4c..343acbe272 100644 --- a/vm/os-windows.cpp +++ b/vm/os-windows.cpp @@ -48,15 +48,6 @@ BOOL factor_vm::windows_stat(vm_char* path) { return ret; } -void factor_vm::windows_image_path(vm_char* full_path, vm_char* temp_path, - unsigned int length) { - wcsncpy(temp_path, full_path, length - 1); - size_t full_path_len = wcslen(full_path); - if (full_path_len < length - 1) - wcsncat(temp_path, L".image", length - full_path_len - 1); - temp_path[length - 1] = 0; -} - /* You must free() this yourself. */ const vm_char* factor_vm::default_image_path() { vm_char full_path[MAX_UNICODE_PATH]; diff --git a/vm/vm.hpp b/vm/vm.hpp index e7effc85e6..ea6419f9eb 100644 --- a/vm/vm.hpp +++ b/vm/vm.hpp @@ -750,8 +750,6 @@ struct factor_vm { const vm_char* vm_executable_path(); const vm_char* default_image_path(); - void windows_image_path(vm_char* full_path, vm_char* temp_path, - unsigned int length); BOOL windows_stat(vm_char* path); LONG exception_handler(PEXCEPTION_RECORD e, void* frame, PCONTEXT c,