]> gitweb.factorcode.org Git - factor.git/commitdiff
VM: get_entry_point is unused
authorBjörn Lindqvist <bjourne@gmail.com>
Sun, 12 Jul 2015 19:02:41 +0000 (21:02 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Sun, 12 Jul 2015 20:36:59 +0000 (22:36 +0200)
vm/entry_points.cpp
vm/vm.hpp

index 41db6cc297f38360380b6a18ccb96b1ac8e220be..c09489f906738dc88f3b4d9ca5c8c5d9ab6a6303 100644 (file)
@@ -17,11 +17,6 @@ void factor_vm::c_to_factor(cell quot) {
   c_to_factor_func(quot);
 }
 
-template <typename Func> Func factor_vm::get_entry_point(cell n) {
-  tagged<word> entry_point_word(special_objects[n]);
-  return (Func) entry_point_word->entry_point;
-}
-
 void factor_vm::unwind_native_frames(cell quot, cell to) {
   tagged<word> entry_point_word(special_objects[UNWIND_NATIVE_FRAMES_WORD]);
   cell func = entry_point_word->entry_point;
index 4c877242d0d2c4231e937828ee7f04a39feca398..48e881fd0782107c00093f7ff11f9ddf72a54ac0 100644 (file)
--- a/vm/vm.hpp
+++ b/vm/vm.hpp
@@ -700,7 +700,6 @@ struct factor_vm {
 
   // entry points
   void c_to_factor(cell quot);
-  template <typename Func> Func get_entry_point(cell n);
   void unwind_native_frames(cell quot, cell to);
   cell get_fpu_state();
   void set_fpu_state(cell state);