diff --git a/Framework/Algorithms/inc/MantidAlgorithms/SortXAxis2.h b/Framework/Algorithms/inc/MantidAlgorithms/SortXAxis2.h
index 620f0b6726bfb4de6c38817316f388e64e8a951f..4afb2c5b8b8016a53d6f11452c81ad1f499da1f6 100644
--- a/Framework/Algorithms/inc/MantidAlgorithms/SortXAxis2.h
+++ b/Framework/Algorithms/inc/MantidAlgorithms/SortXAxis2.h
@@ -58,7 +58,7 @@ private:
       std::vector<std::size_t> &workspaceIndecies,
       Mantid::API::MatrixWorkspace_const_sptr inputWorkspace,
       Mantid::API::MatrixWorkspace_sptr outputWorkspace, const size_t sizeOfY,
-      unsigned int SpecNum, bool isAProperHistogram);
+      unsigned int SpecNum/*, bool isAProperHistogram*/);
 
   void copyXandDxToOutputWorkspace(
       std::vector<std::size_t> &workspaceIndecies,
@@ -71,10 +71,10 @@ private:
                         Mantid::API::MatrixWorkspace_const_sptr inputWorkspace,
                         Mantid::API::MatrixWorkspace_sptr outputWorkspace,
                         const size_t sizeOfX, const size_t sizeOfY,
-                        unsigned int specNum, bool isAProperHistogram);
+                        unsigned int specNum/*, bool isAProperHistogram*/);
 
-  bool determineIfHistogramIsValid(
-      Mantid::API::MatrixWorkspace_const_sptr inputWorkspace);
+  /*bool determineIfHistogramIsValid(
+      Mantid::API::MatrixWorkspace_const_sptr inputWorkspace);*/
 };
 
 } // namespace Algorithms
diff --git a/Framework/Algorithms/src/SortXAxis2.cpp b/Framework/Algorithms/src/SortXAxis2.cpp
index 02105b5c4ee01517f30ab137ea8ecdfc8758b939..18fe0b3c0d5f96116db3cd6f3cb22a1c21452be5 100644
--- a/Framework/Algorithms/src/SortXAxis2.cpp
+++ b/Framework/Algorithms/src/SortXAxis2.cpp
@@ -43,7 +43,7 @@ void SortXAxis::exec() {
   MatrixWorkspace_sptr outputWorkspace = inputWorkspace->clone();
 
   // Check if it is a valid histogram here
-  bool isAProperHistogram = determineIfHistogramIsValid(inputWorkspace);
+  /*bool isAProperHistogram = determineIfHistogramIsValid(inputWorkspace);*/
 
   // Define everything you can outside of the for loop
   // Assume that all spec are the same size
@@ -61,7 +61,7 @@ void SortXAxis::exec() {
     sortIndicesByX(workspaceIndicies, theOrder, inputWorkspace, specNum);
 
     copyToOutputWorkspace(workspaceIndicies, inputWorkspace, outputWorkspace,
-                          sizeOfX, sizeOfY, specNum, isAProperHistogram);
+                          sizeOfX, sizeOfY, specNum/*, isAProperHistogram*/);
     PARALLEL_END_INTERUPT_REGION
   }
   PARALLEL_CHECK_INTERUPT_REGION