remove two methods than cannot be used in c

Signed-off-by: Mattias Andrée <maandree@operamail.com>