Surface: removed obsolete jni function