removed two no-longer-used functions from common.cpp