From 2992ac00b26aa9c97db2e2100b5a4264b81bde86 Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Mon, 24 Aug 2009 12:02:42 +0200 Subject: [PATCH] * src/vm/primitive.cpp: Removed obsolete legacy C interface. * src/vm/primitive.hpp: Likewise. --- src/vm/primitive.cpp | 11 ----------- src/vm/primitive.hpp | 7 ------- 2 files changed, 18 deletions(-) diff --git a/src/vm/primitive.cpp b/src/vm/primitive.cpp index 388c08e2a..9d6b79200 100644 --- a/src/vm/primitive.cpp +++ b/src/vm/primitive.cpp @@ -802,17 +802,6 @@ inline double Primitive::unbox_double(java_handle_t *h) } - -// Legacy C interface. - -extern "C" { - -classinfo* Primitive_get_class_by_name(utf *name) { return Primitive::get_class_by_name(name); } -classinfo* Primitive_get_class_by_type(int type) { return Primitive::get_class_by_type(type); } -classinfo* Primitive_get_arrayclass_by_type(int type) { return Primitive::get_arrayclass_by_type(type); } -} - - /* * These are local overrides for various environment variables in Emacs. * Please do not remove this and leave it at the end of the file, where diff --git a/src/vm/primitive.hpp b/src/vm/primitive.hpp index a0c97176e..2016786f0 100644 --- a/src/vm/primitive.hpp +++ b/src/vm/primitive.hpp @@ -126,13 +126,6 @@ extern primitivetypeinfo primitivetype_table[PRIMITIVETYPE_COUNT]; void primitive_init(void); void primitive_postinit(void); -#ifndef __cplusplus -// Legacy C interface. -classinfo *Primitive_get_class_by_name(utf *name); -classinfo *Primitive_get_class_by_type(int type); -classinfo *Primitive_get_arrayclass_by_type(int type); -#endif - #endif // _PRIMITIVE_HPP -- 2.25.1