Some outdated method add @Deprecated annotation. Thanks to imeta95!

Signed-off-by: mk124 <mk124a@gmail.com>