[#2065] Removed deprecated function which caused issues on some hosts