removed redundant function from s2plotModule.cpp/h