]> gitweb.factorcode.org Git - factor.git/commitdiff
VM: the windows_image_path method is unused
authorBjörn Lindqvist <bjourne@gmail.com>
Fri, 21 Aug 2015 05:23:05 +0000 (07:23 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 24 Aug 2015 14:23:40 +0000 (07:23 -0700)
vm/os-windows.cpp
vm/vm.hpp

index 6870fd3e4c4f6edabb37f45ab28dccacfab5e9d9..343acbe2723d2ba00af78a71bd90f0cb6a3a5d22 100644 (file)
@@ -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];
index e7effc85e69ca8d138425df3550af5ded61f7ec4..ea6419f9ebbff2e94ad193af1ca29754e59b1a99 100644 (file)
--- 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,