diff --git a/Framework/MDAlgorithms/src/CreateMD.cpp b/Framework/MDAlgorithms/src/CreateMD.cpp
index 56deb96070b1483eb5254a552b8fe44bb4f59e85..6e006f5e4b8952ca699886dba2ea581b93847cce 100644
--- a/Framework/MDAlgorithms/src/CreateMD.cpp
+++ b/Framework/MDAlgorithms/src/CreateMD.cpp
@@ -447,8 +447,6 @@ Mantid::API::IMDEventWorkspace_sptr CreateMD::single_run(
 
   std::vector<std::vector<double>> ub_params{alatt, angdeg, u, v};
 
-  std::vector<double> goniometer_params{psi, gl, gs};
-
   if (any_given(ub_params) && !all_given(ub_params)) {
     throw std::invalid_argument(
         "Either specify all of alatt, angledeg, u, v or none of them");