Update MinimumDepthOfBinaryTree.cpp

Delete unused function int getDepth()