[build][core] code cleaning: useless function