[Core] Fix tiny bug introduced in [8390] in an unused function [c2118]