Don't dispatch virtual methods for builtin classes (reduces overhead).
src/libsmoke/cl_smoke.h
Thu Feb 18 20:57:00 CET 2010 Tobias Rautenkranz <tobias@rautenkranz.ch>
* Don't dispatch virtual methods for builtin classes (reduces overhead).
--- old-smoke/src/libsmoke/cl_smoke.h 2014-10-30 08:06:46.000000000 +0100
+++ new-smoke/src/libsmoke/cl_smoke.h 2014-10-30 08:06:46.000000000 +0100
@@ -34,18 +34,6 @@
/** A Binding */
typedef void* smoke_binding;
-/** Casts the void pointer smoke_binding to the Binding class.
- * @param smoke the smoke binding
- *
- * @return pointer to the Binding instance
- */
-static inline
-Binding*
-get_smoke_binding(smoke_binding binding)
-{
- return static_cast<Binding*>(binding);
-}
-
/** Casts the void pointer smoke to the Smoke class.
* @param smoke the Smoke module
*