Remove unused variable in StackDirectory.cpp