From d5c054374e383117893ad86aa10a99de6b60340f Mon Sep 17 00:00:00 2001 From: Samuel Jackson <samueljackson@outlook.com> Date: Tue, 3 Oct 2017 09:18:25 +0100 Subject: [PATCH] Auto fix clang-tidy misc-unused-using-decls This uses the -fix option on clang-tidy to automatically fix all the unused usings declarations that have crept into Mantid. --- Framework/API/src/DetectorSearcher.cpp | 2 -- Framework/API/src/MatrixWorkspace.cpp | 1 - Framework/API/src/TransformScaleFactory.cpp | 1 - Framework/Algorithms/src/AlphaCalc.cpp | 1 - Framework/Algorithms/src/AnnularRingAbsorption.cpp | 2 -- Framework/Algorithms/src/CalMuonDeadTime.cpp | 1 - Framework/Algorithms/src/CalMuonDetectorPhases.cpp | 1 - Framework/Algorithms/src/ConvertDiffCal.cpp | 2 -- .../Algorithms/src/ConvertUnitsUsingDetectorTable.cpp | 2 -- Framework/Algorithms/src/CreateDummyCalFile.cpp | 3 --- Framework/Algorithms/src/DetectorEfficiencyCorUser.cpp | 4 ---- Framework/Algorithms/src/FilterBadPulses.cpp | 1 - Framework/Algorithms/src/FitPeak.cpp | 1 - Framework/Algorithms/src/LineProfile.cpp | 1 - Framework/Algorithms/src/MaskBins.cpp | 1 - Framework/Algorithms/src/MaxEnt.cpp | 3 --- Framework/Algorithms/src/MonitorEfficiencyCorUser.cpp | 3 --- Framework/Algorithms/src/MonteCarloAbsorption.cpp | 4 ---- Framework/Algorithms/src/MuonAsymmetryHelper.cpp | 1 - Framework/Algorithms/src/RRFMuon.cpp | 1 - Framework/Algorithms/src/Rebin2D.cpp | 1 - Framework/Algorithms/src/RemoveLowResTOF.cpp | 2 -- Framework/Algorithms/src/ResampleX.cpp | 1 - Framework/Algorithms/src/SmoothNeighbours.cpp | 1 - Framework/Algorithms/src/SortEvents.cpp | 1 - Framework/Algorithms/src/SpatialGrouping.cpp | 1 - Framework/Algorithms/src/Stitch1D.cpp | 1 - Framework/Algorithms/src/UnwrapSNS.cpp | 3 --- Framework/Crystal/src/CombinePeaksWorkspaces.cpp | 1 - Framework/Crystal/src/DiffPeaksWorkspaces.cpp | 1 - Framework/Crystal/src/FilterPeaks.cpp | 1 - Framework/Crystal/src/GoniometerAnglesFromPhiRotation.cpp | 2 -- Framework/Crystal/src/LoadIsawUB.cpp | 1 - Framework/Crystal/src/OptimizeCrystalPlacement.cpp | 2 -- Framework/Crystal/src/SaveIsawUB.cpp | 1 - Framework/Crystal/src/ShowPeakHKLOffsets.cpp | 1 - .../CurveFitting/src/Algorithms/CrystalFieldEnergies.cpp | 1 - Framework/CurveFitting/src/Algorithms/Fit1D.cpp | 2 -- .../CurveFitting/src/Algorithms/VesuvioCalculateMS.cpp | 2 -- Framework/CurveFitting/src/FitMW.cpp | 3 --- Framework/CurveFitting/src/GSLFunctions.cpp | 1 - Framework/CurveFitting/src/IMWDomainCreator.cpp | 3 --- Framework/DataHandling/src/CheckMantidVersion.cpp | 1 - Framework/DataHandling/src/DownloadFile.cpp | 1 - .../DataHandling/src/FilterEventsByLogValuePreNexus.cpp | 3 --- Framework/DataHandling/src/FindDetectorsInShape.cpp | 3 --- Framework/DataHandling/src/LoadCanSAS1D2.cpp | 3 --- Framework/DataHandling/src/LoadDiffCal.cpp | 1 - Framework/DataHandling/src/LoadEventPreNexus2.cpp | 3 --- Framework/DataHandling/src/LoadFullprofResolution.cpp | 2 -- Framework/DataHandling/src/LoadGSASInstrumentFile.cpp | 2 -- Framework/DataHandling/src/LoadIDFFromNexus.cpp | 2 -- Framework/DataHandling/src/LoadInstrument.cpp | 7 ------- Framework/DataHandling/src/LoadLog.cpp | 1 - Framework/DataHandling/src/LoadMask.cpp | 2 -- Framework/DataHandling/src/LoadMuonLog.cpp | 1 - Framework/DataHandling/src/LoadMuonNexus1.cpp | 1 - Framework/DataHandling/src/LoadNexusMonitors2.cpp | 1 - Framework/DataHandling/src/LoadParameterFile.cpp | 4 ---- Framework/DataHandling/src/LoadSpice2D.cpp | 3 --- Framework/DataHandling/src/RemoveLogs.cpp | 1 - Framework/DataHandling/src/RotateSource.cpp | 1 - Framework/DataHandling/src/SaveNXTomo.cpp | 1 - Framework/DataHandling/src/SetSample.cpp | 2 -- Framework/DataHandling/src/UpdateInstrumentFromFile.cpp | 1 - Framework/DataObjects/src/EventList.cpp | 1 - Framework/DataObjects/src/EventWorkspace.cpp | 1 - Framework/DataObjects/src/Events.cpp | 3 --- Framework/DataObjects/src/GroupingWorkspace.cpp | 1 - Framework/DataObjects/src/OffsetsWorkspace.cpp | 1 - Framework/DataObjects/src/SpecialWorkspace2D.cpp | 1 - Framework/DataObjects/src/Workspace2D.cpp | 1 - Framework/Geometry/src/Crystal/ReducedCell.cpp | 1 - Framework/Geometry/src/Instrument/ComponentHelper.cpp | 1 - Framework/Geometry/src/Instrument/Detector.cpp | 1 - Framework/Geometry/src/Instrument/RectangularDetector.cpp | 1 - Framework/Geometry/src/Instrument/SampleEnvironment.cpp | 1 - Framework/Geometry/src/Instrument/StructuredDetector.cpp | 2 -- Framework/Geometry/src/Rendering/OCGeometryGenerator.cpp | 2 -- .../Geometry/src/Rendering/vtkGeometryCacheReader.cpp | 6 ------ Framework/HistogramData/src/Interpolate.cpp | 1 - Framework/HistogramData/src/Rebin.cpp | 1 - Framework/Kernel/src/GitHubApiHelper.cpp | 1 - Framework/Kernel/src/MaterialBuilder.cpp | 1 - Framework/Kernel/src/Matrix.cpp | 1 - Framework/Kernel/src/PropertyNexus.cpp | 2 -- Framework/MDAlgorithms/src/BinMD.cpp | 2 -- Framework/MDAlgorithms/src/LoadSQW2.cpp | 2 -- .../src/Quantification/FitResolutionConvolvedModel.cpp | 1 - .../Quantification/Resolution/TobyFitResolutionModel.cpp | 2 -- .../mantid/api/src/Exports/AlgorithmFactory.cpp | 1 - .../mantid/api/src/Exports/AlgorithmHistory.cpp | 2 -- .../mantid/api/src/Exports/DataProcessorAlgorithm.cpp | 1 - .../mantid/api/src/Exports/FunctionFactory.cpp | 1 - .../mantid/api/src/Exports/IEventWorkspaceProperty.cpp | 1 - .../PythonInterface/mantid/api/src/Exports/IFunction1D.cpp | 1 - .../mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp | 1 - .../mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp | 1 - .../mantid/api/src/Exports/IMDWorkspaceProperty.cpp | 1 - .../mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp | 1 - .../mantid/api/src/Exports/ITableWorkspaceProperty.cpp | 1 - .../mantid/api/src/Exports/MatrixWorkspaceProperty.cpp | 1 - .../PythonInterface/mantid/api/src/Exports/Sample.cpp | 1 - .../mantid/api/src/Exports/WorkspaceGroupProperty.cpp | 1 - .../mantid/api/src/Exports/WorkspaceHistory.cpp | 2 -- .../mantid/api/src/Exports/WorkspaceProperty.cpp | 1 - .../dataobjects/src/Exports/EventWorkspaceProperty.cpp | 1 - .../dataobjects/src/Exports/MaskWorkspaceProperty.cpp | 1 - .../mantid/geometry/src/Exports/ReferenceFrame.cpp | 1 - .../mantid/geometry/src/Exports/SpaceGroup.cpp | 1 - .../mantid/kernel/src/Environment/ErrorHandling.cpp | 1 - .../PythonInterface/mantid/kernel/src/Exports/Atom.cpp | 1 - .../PythonInterface/mantid/kernel/src/Exports/Material.cpp | 1 - .../PythonInterface/mantid/kernel/src/Exports/Property.cpp | 2 -- .../mantid/kernel/src/Exports/PropertyManagerProperty.cpp | 1 - .../PythonInterface/mantid/kernel/src/Exports/Quat.cpp | 1 - .../mantid/kernel/src/Registry/MappingTypeHandler.cpp | 5 ----- Framework/ScriptRepository/src/ScriptRepositoryImpl.cpp | 2 -- MantidPlot/src/Mantid/MantidCurve.cpp | 1 - MantidPlot/src/Mantid/MantidPlotUtilities.cpp | 3 --- .../src/Mantid/MantidSurfaceContourPlotGenerator.cpp | 1 - MantidPlot/src/Mantid/MantidUI.cpp | 1 - qt/scientific_interfaces/Indirect/DensityOfStates.cpp | 1 - qt/scientific_interfaces/Indirect/IndirectBayesTab.cpp | 1 - .../MultiDatasetFit/MDFDataController.cpp | 1 - .../MultiDatasetFit/MultiDatasetFit.cpp | 1 - qt/widgets/instrumentview/src/CompAssemblyActor.cpp | 3 --- qt/widgets/instrumentview/src/InstrumentTreeModel.cpp | 1 - qt/widgets/instrumentview/src/UnwrappedSurface.cpp | 1 - qt/widgets/refdetectorview/src/RefMatrixWSImageView.cpp | 2 -- qt/widgets/sliceviewer/src/SliceViewer.cpp | 2 -- 131 files changed, 209 deletions(-) diff --git a/Framework/API/src/DetectorSearcher.cpp b/Framework/API/src/DetectorSearcher.cpp index 6170612c893..d1e6f76513e 100644 --- a/Framework/API/src/DetectorSearcher.cpp +++ b/Framework/API/src/DetectorSearcher.cpp @@ -7,8 +7,6 @@ using Mantid::Kernel::V3D; using Mantid::Geometry::InstrumentRayTracer; -using Mantid::Geometry::IDetector; -using Mantid::Geometry::ReferenceFrame; using namespace Mantid; using namespace Mantid::API; diff --git a/Framework/API/src/MatrixWorkspace.cpp b/Framework/API/src/MatrixWorkspace.cpp index aa0aa5b7009..d2b833ff01d 100644 --- a/Framework/API/src/MatrixWorkspace.cpp +++ b/Framework/API/src/MatrixWorkspace.cpp @@ -30,7 +30,6 @@ using Mantid::Kernel::DateAndTime; using Mantid::Kernel::TimeSeriesProperty; -using Mantid::Kernel::Strings::toString; namespace Mantid { namespace API { diff --git a/Framework/API/src/TransformScaleFactory.cpp b/Framework/API/src/TransformScaleFactory.cpp index d0cccf43747..d7f58605063 100644 --- a/Framework/API/src/TransformScaleFactory.cpp +++ b/Framework/API/src/TransformScaleFactory.cpp @@ -2,7 +2,6 @@ #include "MantidAPI/ITransformScale.h" #include "MantidKernel/Logger.h" -using boost::shared_ptr; namespace Mantid { namespace API { diff --git a/Framework/Algorithms/src/AlphaCalc.cpp b/Framework/Algorithms/src/AlphaCalc.cpp index 8964d7c631c..49f17e8eed8 100644 --- a/Framework/Algorithms/src/AlphaCalc.cpp +++ b/Framework/Algorithms/src/AlphaCalc.cpp @@ -12,7 +12,6 @@ namespace Mantid { namespace Algorithms { using namespace Kernel; -using API::Progress; // Register the class into the algorithm factory DECLARE_ALGORITHM(AlphaCalc) diff --git a/Framework/Algorithms/src/AnnularRingAbsorption.cpp b/Framework/Algorithms/src/AnnularRingAbsorption.cpp index 8715fb3127e..28a8502fd1b 100644 --- a/Framework/Algorithms/src/AnnularRingAbsorption.cpp +++ b/Framework/Algorithms/src/AnnularRingAbsorption.cpp @@ -24,8 +24,6 @@ namespace Mantid { namespace Algorithms { using namespace Mantid::API; -using Mantid::Geometry::ObjComponent; -using Mantid::Geometry::SampleEnvironment; using namespace Mantid::Kernel; // Register the algorithm into the AlgorithmFactory diff --git a/Framework/Algorithms/src/CalMuonDeadTime.cpp b/Framework/Algorithms/src/CalMuonDeadTime.cpp index d5cea870dbb..13fe576ff27 100644 --- a/Framework/Algorithms/src/CalMuonDeadTime.cpp +++ b/Framework/Algorithms/src/CalMuonDeadTime.cpp @@ -16,7 +16,6 @@ namespace Mantid { namespace Algorithms { using namespace Kernel; -using API::Progress; // Register the class into the algorithm factory DECLARE_ALGORITHM(CalMuonDeadTime) diff --git a/Framework/Algorithms/src/CalMuonDetectorPhases.cpp b/Framework/Algorithms/src/CalMuonDetectorPhases.cpp index 639a7949eb5..ddc555d2f17 100644 --- a/Framework/Algorithms/src/CalMuonDetectorPhases.cpp +++ b/Framework/Algorithms/src/CalMuonDetectorPhases.cpp @@ -19,7 +19,6 @@ namespace Mantid { namespace Algorithms { using namespace Kernel; -using API::Progress; // Register the algorithm into the AlgorithmFactory DECLARE_ALGORITHM(CalMuonDetectorPhases) diff --git a/Framework/Algorithms/src/ConvertDiffCal.cpp b/Framework/Algorithms/src/ConvertDiffCal.cpp index 2a48206e70b..af58cc0fda7 100644 --- a/Framework/Algorithms/src/ConvertDiffCal.cpp +++ b/Framework/Algorithms/src/ConvertDiffCal.cpp @@ -13,7 +13,6 @@ namespace Algorithms { using Mantid::Kernel::Direction; using Mantid::API::IAlgorithm_sptr; -using Mantid::API::ISpectrum; using Mantid::API::ITableWorkspace; using Mantid::API::ITableWorkspace_sptr; using Mantid::API::Progress; @@ -22,7 +21,6 @@ using Mantid::DataObjects::OffsetsWorkspace; using Mantid::DataObjects::OffsetsWorkspace_const_sptr; using Mantid::DataObjects::TableWorkspace; using Mantid::DataObjects::TableWorkspace_sptr; -using Mantid::Geometry::Instrument; using Mantid::Geometry::Instrument_const_sptr; // Register the algorithm into the AlgorithmFactory diff --git a/Framework/Algorithms/src/ConvertUnitsUsingDetectorTable.cpp b/Framework/Algorithms/src/ConvertUnitsUsingDetectorTable.cpp index 47eb7cd8543..57815ca763a 100644 --- a/Framework/Algorithms/src/ConvertUnitsUsingDetectorTable.cpp +++ b/Framework/Algorithms/src/ConvertUnitsUsingDetectorTable.cpp @@ -28,8 +28,6 @@ using namespace Kernel; using namespace API; using namespace DataObjects; using namespace HistogramData; -using boost::function; -using boost::bind; // Register the algorithm into the AlgorithmFactory DECLARE_ALGORITHM(ConvertUnitsUsingDetectorTable) diff --git a/Framework/Algorithms/src/CreateDummyCalFile.cpp b/Framework/Algorithms/src/CreateDummyCalFile.cpp index 3ac57bd42b8..d8a7c3a3268 100644 --- a/Framework/Algorithms/src/CreateDummyCalFile.cpp +++ b/Framework/Algorithms/src/CreateDummyCalFile.cpp @@ -16,9 +16,6 @@ #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/detail/classification.hpp> -using Poco::XML::DOMParser; -using Poco::XML::Document; -using Poco::XML::Element; namespace Mantid { namespace Algorithms { diff --git a/Framework/Algorithms/src/DetectorEfficiencyCorUser.cpp b/Framework/Algorithms/src/DetectorEfficiencyCorUser.cpp index a510174ea8c..67806601ad9 100644 --- a/Framework/Algorithms/src/DetectorEfficiencyCorUser.cpp +++ b/Framework/Algorithms/src/DetectorEfficiencyCorUser.cpp @@ -11,10 +11,6 @@ #include "MantidKernel/CompositeValidator.h" #include "MantidKernel/Strings.h" -using Mantid::HistogramData::Histogram; -using Mantid::HistogramData::HistogramE; -using Mantid::HistogramData::HistogramY; -using Mantid::HistogramData::Points; namespace Mantid { namespace Algorithms { diff --git a/Framework/Algorithms/src/FilterBadPulses.cpp b/Framework/Algorithms/src/FilterBadPulses.cpp index 5481223edd0..ec4f20029e3 100644 --- a/Framework/Algorithms/src/FilterBadPulses.cpp +++ b/Framework/Algorithms/src/FilterBadPulses.cpp @@ -15,7 +15,6 @@ DECLARE_ALGORITHM(FilterBadPulses) using namespace Kernel; using namespace API; -using DataObjects::EventList; using DataObjects::EventWorkspace; using DataObjects::EventWorkspace_sptr; using DataObjects::EventWorkspace_const_sptr; diff --git a/Framework/Algorithms/src/FitPeak.cpp b/Framework/Algorithms/src/FitPeak.cpp index 4d3fd6eb10d..ed12a028ee9 100644 --- a/Framework/Algorithms/src/FitPeak.cpp +++ b/Framework/Algorithms/src/FitPeak.cpp @@ -28,7 +28,6 @@ using namespace Mantid::API; using namespace Mantid::DataObjects; using namespace Mantid::Kernel; using Mantid::HistogramData::HistogramX; -using Mantid::HistogramData::HistogramY; using namespace std; diff --git a/Framework/Algorithms/src/LineProfile.cpp b/Framework/Algorithms/src/LineProfile.cpp index ef287132a4b..4dd9b0471ec 100644 --- a/Framework/Algorithms/src/LineProfile.cpp +++ b/Framework/Algorithms/src/LineProfile.cpp @@ -40,7 +40,6 @@ using Mantid::Kernel::Direction; using Mantid::Kernel::ListValidator; using Mantid::Kernel::make_unique; using Mantid::Kernel::MandatoryValidator; -using Mantid::Kernel::Unit; namespace { /// An enum specifying a line profile orientation. diff --git a/Framework/Algorithms/src/MaskBins.cpp b/Framework/Algorithms/src/MaskBins.cpp index b5ddc35af20..41ebbe2a371 100644 --- a/Framework/Algorithms/src/MaskBins.cpp +++ b/Framework/Algorithms/src/MaskBins.cpp @@ -21,7 +21,6 @@ DECLARE_ALGORITHM(MaskBins) using namespace Kernel; using namespace API; using namespace Mantid; -using Mantid::DataObjects::EventList; using Mantid::DataObjects::EventWorkspace; using Mantid::DataObjects::EventWorkspace_sptr; using Mantid::DataObjects::EventWorkspace_const_sptr; diff --git a/Framework/Algorithms/src/MaxEnt.cpp b/Framework/Algorithms/src/MaxEnt.cpp index 7590dcbf0f1..ff26a37dab0 100644 --- a/Framework/Algorithms/src/MaxEnt.cpp +++ b/Framework/Algorithms/src/MaxEnt.cpp @@ -22,9 +22,6 @@ namespace Algorithms { using Mantid::Kernel::Direction; using Mantid::API::WorkspaceProperty; using Mantid::HistogramData::Points; -using Mantid::HistogramData::BinEdges; -using Mantid::HistogramData::Counts; -using Mantid::HistogramData::CountStandardDeviations; using Mantid::HistogramData::LinearGenerator; using namespace API; diff --git a/Framework/Algorithms/src/MonitorEfficiencyCorUser.cpp b/Framework/Algorithms/src/MonitorEfficiencyCorUser.cpp index 69061e7f696..42734b9899c 100644 --- a/Framework/Algorithms/src/MonitorEfficiencyCorUser.cpp +++ b/Framework/Algorithms/src/MonitorEfficiencyCorUser.cpp @@ -9,9 +9,6 @@ #include "MantidKernel/MultiThreaded.h" #include "MantidKernel/Strings.h" -using Mantid::HistogramData::HistogramX; -using Mantid::HistogramData::HistogramY; -using Mantid::HistogramData::HistogramE; namespace Mantid { namespace Algorithms { diff --git a/Framework/Algorithms/src/MonteCarloAbsorption.cpp b/Framework/Algorithms/src/MonteCarloAbsorption.cpp index 6e78629ef36..bc87627cf16 100644 --- a/Framework/Algorithms/src/MonteCarloAbsorption.cpp +++ b/Framework/Algorithms/src/MonteCarloAbsorption.cpp @@ -28,10 +28,6 @@ using namespace Mantid::API; using namespace Mantid::Geometry; using namespace Mantid::Kernel; -using Mantid::HistogramData::Histogram; -using Mantid::HistogramData::HistogramX; -using Mantid::HistogramData::Points; -using Mantid::HistogramData::interpolateLinearInplace; using Mantid::DataObjects::Workspace2D; namespace PhysicalConstants = Mantid::PhysicalConstants; diff --git a/Framework/Algorithms/src/MuonAsymmetryHelper.cpp b/Framework/Algorithms/src/MuonAsymmetryHelper.cpp index 1f52fca5ad2..e4efbb9b384 100644 --- a/Framework/Algorithms/src/MuonAsymmetryHelper.cpp +++ b/Framework/Algorithms/src/MuonAsymmetryHelper.cpp @@ -29,7 +29,6 @@ constexpr double MUON_LIFETIME_MICROSECONDS{ namespace Mantid { using namespace Kernel; -using API::Progress; using std::size_t; /** diff --git a/Framework/Algorithms/src/RRFMuon.cpp b/Framework/Algorithms/src/RRFMuon.cpp index 35eb7b6dcf3..4771ec10aa2 100644 --- a/Framework/Algorithms/src/RRFMuon.cpp +++ b/Framework/Algorithms/src/RRFMuon.cpp @@ -8,7 +8,6 @@ namespace Mantid { namespace Algorithms { using namespace Kernel; -using API::Progress; // Register the class into the algorithm factory DECLARE_ALGORITHM(RRFMuon) diff --git a/Framework/Algorithms/src/Rebin2D.cpp b/Framework/Algorithms/src/Rebin2D.cpp index 6a426c9c5dc..b479fe177bc 100644 --- a/Framework/Algorithms/src/Rebin2D.cpp +++ b/Framework/Algorithms/src/Rebin2D.cpp @@ -21,7 +21,6 @@ DECLARE_ALGORITHM(Rebin2D) using namespace API; using namespace DataObjects; using namespace Geometry; -using Kernel::V2D; using namespace Mantid::HistogramData; //-------------------------------------------------------------------------- diff --git a/Framework/Algorithms/src/RemoveLowResTOF.cpp b/Framework/Algorithms/src/RemoveLowResTOF.cpp index 5ec41785184..94c54d97319 100644 --- a/Framework/Algorithms/src/RemoveLowResTOF.cpp +++ b/Framework/Algorithms/src/RemoveLowResTOF.cpp @@ -23,8 +23,6 @@ using namespace Kernel; using namespace API; using namespace Geometry; using DataObjects::EventWorkspace; -using Kernel::Exception::InstrumentDefinitionError; -using Kernel::Exception::NotFoundError; using std::size_t; using std::string; diff --git a/Framework/Algorithms/src/ResampleX.cpp b/Framework/Algorithms/src/ResampleX.cpp index 82c462f4fcd..6c9323c03e3 100644 --- a/Framework/Algorithms/src/ResampleX.cpp +++ b/Framework/Algorithms/src/ResampleX.cpp @@ -17,7 +17,6 @@ using namespace DataObjects; using namespace Kernel; using HistogramData::BinEdges; using std::map; -using std::pair; using std::string; using std::stringstream; using std::vector; diff --git a/Framework/Algorithms/src/SmoothNeighbours.cpp b/Framework/Algorithms/src/SmoothNeighbours.cpp index eea66fa37c6..dbbae50f50d 100644 --- a/Framework/Algorithms/src/SmoothNeighbours.cpp +++ b/Framework/Algorithms/src/SmoothNeighbours.cpp @@ -23,7 +23,6 @@ using namespace Mantid::Kernel; using namespace Mantid::Geometry; using namespace Mantid::API; using namespace Mantid::DataObjects; -using std::map; typedef std::vector<Mantid::Kernel::Property *> VecProperties; typedef const VecProperties ConstVecProperties; diff --git a/Framework/Algorithms/src/SortEvents.cpp b/Framework/Algorithms/src/SortEvents.cpp index d21053acee2..2da390983b2 100644 --- a/Framework/Algorithms/src/SortEvents.cpp +++ b/Framework/Algorithms/src/SortEvents.cpp @@ -14,7 +14,6 @@ DECLARE_ALGORITHM(SortEvents) using namespace Kernel; using namespace API; -using DataObjects::EventList; using DataObjects::EventWorkspace; using DataObjects::EventWorkspace_sptr; using DataObjects::EventWorkspace_const_sptr; diff --git a/Framework/Algorithms/src/SpatialGrouping.cpp b/Framework/Algorithms/src/SpatialGrouping.cpp index 19d779c3a8f..b4febbdba4e 100644 --- a/Framework/Algorithms/src/SpatialGrouping.cpp +++ b/Framework/Algorithms/src/SpatialGrouping.cpp @@ -14,7 +14,6 @@ #include <algorithm> #include "MantidAPI/ISpectrum.h" -using Mantid::API::ISpectrum; namespace { /* diff --git a/Framework/Algorithms/src/Stitch1D.cpp b/Framework/Algorithms/src/Stitch1D.cpp index 9dba784d242..e334f7b4cae 100644 --- a/Framework/Algorithms/src/Stitch1D.cpp +++ b/Framework/Algorithms/src/Stitch1D.cpp @@ -20,7 +20,6 @@ using namespace Mantid::Kernel; using namespace Mantid::API; -using Mantid::HistogramData::HistogramX; using Mantid::HistogramData::HistogramY; using Mantid::HistogramData::HistogramE; diff --git a/Framework/Algorithms/src/UnwrapSNS.cpp b/Framework/Algorithms/src/UnwrapSNS.cpp index 2c9eab1842e..fc13b6809ce 100644 --- a/Framework/Algorithms/src/UnwrapSNS.cpp +++ b/Framework/Algorithms/src/UnwrapSNS.cpp @@ -21,10 +21,7 @@ DECLARE_ALGORITHM(UnwrapSNS) using namespace Kernel; using namespace API; -using DataObjects::EventList; using DataObjects::EventWorkspace; -using Kernel::Exception::InstrumentDefinitionError; -using Kernel::Exception::NotFoundError; using std::size_t; /// Default constructor diff --git a/Framework/Crystal/src/CombinePeaksWorkspaces.cpp b/Framework/Crystal/src/CombinePeaksWorkspaces.cpp index 72d9005e6b9..0ee2cb85a77 100644 --- a/Framework/Crystal/src/CombinePeaksWorkspaces.cpp +++ b/Framework/Crystal/src/CombinePeaksWorkspaces.cpp @@ -14,7 +14,6 @@ using namespace API; using DataObjects::PeaksWorkspace; using DataObjects::PeaksWorkspace_const_sptr; using DataObjects::PeaksWorkspace_sptr; -using DataObjects::Peak; /// Algorithm's name for identification. @see Algorithm::name const std::string CombinePeaksWorkspaces::name() const { diff --git a/Framework/Crystal/src/DiffPeaksWorkspaces.cpp b/Framework/Crystal/src/DiffPeaksWorkspaces.cpp index 3c3ef6ab098..c6aa4998963 100644 --- a/Framework/Crystal/src/DiffPeaksWorkspaces.cpp +++ b/Framework/Crystal/src/DiffPeaksWorkspaces.cpp @@ -13,7 +13,6 @@ using namespace API; using DataObjects::PeaksWorkspace; using DataObjects::PeaksWorkspace_const_sptr; using DataObjects::PeaksWorkspace_sptr; -using DataObjects::Peak; /// Algorithm's name for identification. @see Algorithm::name const std::string DiffPeaksWorkspaces::name() const { diff --git a/Framework/Crystal/src/FilterPeaks.cpp b/Framework/Crystal/src/FilterPeaks.cpp index d26ac9806dc..7e1bf0a54a4 100644 --- a/Framework/Crystal/src/FilterPeaks.cpp +++ b/Framework/Crystal/src/FilterPeaks.cpp @@ -34,7 +34,6 @@ using namespace API; using DataObjects::PeaksWorkspace; using DataObjects::PeaksWorkspace_const_sptr; using DataObjects::PeaksWorkspace_sptr; -using DataObjects::Peak; /// Algorithm's name for identification. @see Algorithm::name const std::string FilterPeaks::name() const { return "FilterPeaks"; } diff --git a/Framework/Crystal/src/GoniometerAnglesFromPhiRotation.cpp b/Framework/Crystal/src/GoniometerAnglesFromPhiRotation.cpp index 797cfa9f3ef..4ec190b3665 100644 --- a/Framework/Crystal/src/GoniometerAnglesFromPhiRotation.cpp +++ b/Framework/Crystal/src/GoniometerAnglesFromPhiRotation.cpp @@ -10,8 +10,6 @@ #include "MantidGeometry/Instrument/Goniometer.h" using Mantid::Kernel::Direction; -using Mantid::Kernel::Logger; -using Mantid::API::IFunction; namespace Mantid { namespace Crystal { diff --git a/Framework/Crystal/src/LoadIsawUB.cpp b/Framework/Crystal/src/LoadIsawUB.cpp index 49e754ec0fd..65c8889bcd7 100644 --- a/Framework/Crystal/src/LoadIsawUB.cpp +++ b/Framework/Crystal/src/LoadIsawUB.cpp @@ -8,7 +8,6 @@ using namespace Mantid::Kernel::Strings; using Mantid::Kernel::DblMatrix; -using Mantid::Geometry::UnitCell; using Mantid::Geometry::OrientedLattice; namespace Mantid { diff --git a/Framework/Crystal/src/OptimizeCrystalPlacement.cpp b/Framework/Crystal/src/OptimizeCrystalPlacement.cpp index 8f1c77bf3d9..166b7f804aa 100644 --- a/Framework/Crystal/src/OptimizeCrystalPlacement.cpp +++ b/Framework/Crystal/src/OptimizeCrystalPlacement.cpp @@ -26,9 +26,7 @@ using namespace Mantid::API; using namespace Mantid::DataObjects; using namespace Mantid::Kernel; using Mantid::Geometry::IndexingUtils; -using Mantid::Geometry::Instrument; using Mantid::Geometry::Instrument_const_sptr; -using Mantid::Geometry::ParameterMap; using namespace Mantid::Geometry; namespace Mantid { diff --git a/Framework/Crystal/src/SaveIsawUB.cpp b/Framework/Crystal/src/SaveIsawUB.cpp index 9e13bc57b56..0e5e66d7b46 100644 --- a/Framework/Crystal/src/SaveIsawUB.cpp +++ b/Framework/Crystal/src/SaveIsawUB.cpp @@ -7,7 +7,6 @@ #include <iomanip> using Mantid::Kernel::DblMatrix; -using Mantid::Geometry::UnitCell; using Mantid::Geometry::OrientedLattice; namespace Mantid { diff --git a/Framework/Crystal/src/ShowPeakHKLOffsets.cpp b/Framework/Crystal/src/ShowPeakHKLOffsets.cpp index f3f7b062930..8ef72081c2c 100644 --- a/Framework/Crystal/src/ShowPeakHKLOffsets.cpp +++ b/Framework/Crystal/src/ShowPeakHKLOffsets.cpp @@ -8,7 +8,6 @@ using Mantid::DataObjects::PeaksWorkspace; using Mantid::API::WorkspaceProperty; using Mantid::Kernel::Direction; -using Mantid::DataObjects::TableWorkspace; using Mantid::DataObjects::PeaksWorkspace_sptr; using Mantid::DataObjects::TableWorkspace_sptr; using Mantid::DataObjects::Peak; diff --git a/Framework/CurveFitting/src/Algorithms/CrystalFieldEnergies.cpp b/Framework/CurveFitting/src/Algorithms/CrystalFieldEnergies.cpp index 0a5a475cbd8..9276491b113 100644 --- a/Framework/CurveFitting/src/Algorithms/CrystalFieldEnergies.cpp +++ b/Framework/CurveFitting/src/Algorithms/CrystalFieldEnergies.cpp @@ -12,7 +12,6 @@ namespace Mantid { namespace CurveFitting { using Mantid::Kernel::Direction; -using Mantid::API::WorkspaceProperty; using Mantid::CurveFitting::ComplexFortranMatrix; using Mantid::CurveFitting::DoubleFortranMatrix; using Mantid::CurveFitting::DoubleFortranVector; diff --git a/Framework/CurveFitting/src/Algorithms/Fit1D.cpp b/Framework/CurveFitting/src/Algorithms/Fit1D.cpp index a9e778a2521..96d3d559894 100644 --- a/Framework/CurveFitting/src/Algorithms/Fit1D.cpp +++ b/Framework/CurveFitting/src/Algorithms/Fit1D.cpp @@ -28,10 +28,8 @@ namespace Algorithms { using namespace Kernel; using API::WorkspaceProperty; -using API::Axis; using API::MatrixWorkspace_const_sptr; using API::MatrixWorkspace; -using API::Algorithm; using API::Progress; using API::Jacobian; diff --git a/Framework/CurveFitting/src/Algorithms/VesuvioCalculateMS.cpp b/Framework/CurveFitting/src/Algorithms/VesuvioCalculateMS.cpp index a15d3e7a846..3121c62a16c 100644 --- a/Framework/CurveFitting/src/Algorithms/VesuvioCalculateMS.cpp +++ b/Framework/CurveFitting/src/Algorithms/VesuvioCalculateMS.cpp @@ -34,8 +34,6 @@ using namespace API; using namespace Kernel; using namespace CurveFitting; using namespace CurveFitting::Functions; -using Geometry::Link; -using Geometry::ParameterMap; using Geometry::Track; namespace { diff --git a/Framework/CurveFitting/src/FitMW.cpp b/Framework/CurveFitting/src/FitMW.cpp index def14515b16..1a4b1915b87 100644 --- a/Framework/CurveFitting/src/FitMW.cpp +++ b/Framework/CurveFitting/src/FitMW.cpp @@ -30,10 +30,7 @@ namespace CurveFitting { using namespace Kernel; using API::Workspace; -using API::Axis; using API::MatrixWorkspace; -using API::Algorithm; -using API::Jacobian; namespace { diff --git a/Framework/CurveFitting/src/GSLFunctions.cpp b/Framework/CurveFitting/src/GSLFunctions.cpp index bb3276dc3d5..d625f504c58 100644 --- a/Framework/CurveFitting/src/GSLFunctions.cpp +++ b/Framework/CurveFitting/src/GSLFunctions.cpp @@ -8,7 +8,6 @@ namespace Mantid { namespace CurveFitting { -using API::Jacobian; /** Fit GSL function wrapper * @param x :: Input function parameters diff --git a/Framework/CurveFitting/src/IMWDomainCreator.cpp b/Framework/CurveFitting/src/IMWDomainCreator.cpp index e2d9d3c2740..c8dd1177cde 100644 --- a/Framework/CurveFitting/src/IMWDomainCreator.cpp +++ b/Framework/CurveFitting/src/IMWDomainCreator.cpp @@ -55,10 +55,7 @@ bool greaterIsLess(double x1, double x2) { return x1 > x2; } using namespace Kernel; using API::Workspace; -using API::Axis; using API::MatrixWorkspace; -using API::Algorithm; -using API::Jacobian; /** * Constructor. diff --git a/Framework/DataHandling/src/CheckMantidVersion.cpp b/Framework/DataHandling/src/CheckMantidVersion.cpp index c5b1c4b9e58..fe0021a49c3 100644 --- a/Framework/DataHandling/src/CheckMantidVersion.cpp +++ b/Framework/DataHandling/src/CheckMantidVersion.cpp @@ -18,7 +18,6 @@ namespace Mantid { namespace DataHandling { using namespace Mantid::Kernel; -using Mantid::API::WorkspaceProperty; // Register the algorithm into the AlgorithmFactory DECLARE_ALGORITHM(CheckMantidVersion) diff --git a/Framework/DataHandling/src/DownloadFile.cpp b/Framework/DataHandling/src/DownloadFile.cpp index 718ac786f61..6f315345eb5 100644 --- a/Framework/DataHandling/src/DownloadFile.cpp +++ b/Framework/DataHandling/src/DownloadFile.cpp @@ -18,7 +18,6 @@ namespace DataHandling { using Mantid::Kernel::Direction; using Mantid::Kernel::MandatoryValidator; using Mantid::Kernel::StringListValidator; -using Mantid::API::WorkspaceProperty; using Mantid::API::FileProperty; // Register the algorithm into the AlgorithmFactory diff --git a/Framework/DataHandling/src/FilterEventsByLogValuePreNexus.cpp b/Framework/DataHandling/src/FilterEventsByLogValuePreNexus.cpp index cb116641840..c41dac2d24c 100644 --- a/Framework/DataHandling/src/FilterEventsByLogValuePreNexus.cpp +++ b/Framework/DataHandling/src/FilterEventsByLogValuePreNexus.cpp @@ -51,13 +51,10 @@ using namespace Kernel; using namespace API; using namespace DataObjects; using namespace Geometry; -using boost::posix_time::ptime; -using boost::posix_time::time_duration; using DataObjects::EventList; using DataObjects::EventWorkspace; using DataObjects::EventWorkspace_sptr; using DataObjects::TofEvent; -using std::cout; using std::ifstream; using std::runtime_error; using std::stringstream; diff --git a/Framework/DataHandling/src/FindDetectorsInShape.cpp b/Framework/DataHandling/src/FindDetectorsInShape.cpp index a1d49f4d675..5093623918a 100644 --- a/Framework/DataHandling/src/FindDetectorsInShape.cpp +++ b/Framework/DataHandling/src/FindDetectorsInShape.cpp @@ -10,9 +10,6 @@ #include <Poco/DOM/Document.h> #include <Poco/DOM/Element.h> -using Poco::XML::DOMParser; -using Poco::XML::Document; -using Poco::XML::Element; namespace Mantid { namespace DataHandling { diff --git a/Framework/DataHandling/src/LoadCanSAS1D2.cpp b/Framework/DataHandling/src/LoadCanSAS1D2.cpp index 959f9b2910d..6b40631bf0f 100644 --- a/Framework/DataHandling/src/LoadCanSAS1D2.cpp +++ b/Framework/DataHandling/src/LoadCanSAS1D2.cpp @@ -16,12 +16,9 @@ #include <boost/lexical_cast.hpp> -using Poco::XML::DOMParser; -using Poco::XML::Document; using Poco::XML::Element; using Poco::XML::NodeList; using Poco::XML::Node; -using Poco::XML::Text; using namespace Mantid::Kernel; using namespace Mantid::API; diff --git a/Framework/DataHandling/src/LoadDiffCal.cpp b/Framework/DataHandling/src/LoadDiffCal.cpp index 4c16d0b6447..7ff915eb1ca 100644 --- a/Framework/DataHandling/src/LoadDiffCal.cpp +++ b/Framework/DataHandling/src/LoadDiffCal.cpp @@ -21,7 +21,6 @@ namespace Mantid { namespace DataHandling { using Mantid::API::FileProperty; -using Mantid::API::MatrixWorkspace; using Mantid::API::MatrixWorkspace_sptr; using Mantid::API::Progress; using Mantid::API::ITableWorkspace; diff --git a/Framework/DataHandling/src/LoadEventPreNexus2.cpp b/Framework/DataHandling/src/LoadEventPreNexus2.cpp index d338d1417ce..ec3f7aa677d 100644 --- a/Framework/DataHandling/src/LoadEventPreNexus2.cpp +++ b/Framework/DataHandling/src/LoadEventPreNexus2.cpp @@ -49,13 +49,10 @@ using namespace API; using namespace Geometry; using namespace DataObjects; -using boost::posix_time::ptime; -using boost::posix_time::time_duration; using DataObjects::EventList; using DataObjects::EventWorkspace; using DataObjects::EventWorkspace_sptr; using DataObjects::TofEvent; -using std::cout; using std::ifstream; using std::runtime_error; using std::stringstream; diff --git a/Framework/DataHandling/src/LoadFullprofResolution.cpp b/Framework/DataHandling/src/LoadFullprofResolution.cpp index cb0e15e0128..25bd1ef60a4 100644 --- a/Framework/DataHandling/src/LoadFullprofResolution.cpp +++ b/Framework/DataHandling/src/LoadFullprofResolution.cpp @@ -29,10 +29,8 @@ using namespace Mantid::Kernel; using namespace std; using namespace Poco::XML; -using Geometry::Instrument; using Geometry::Instrument_sptr; using Geometry::Instrument_const_sptr; -using Mantid::Geometry::InstrumentDefinitionParser; namespace Mantid { namespace DataHandling { diff --git a/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp b/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp index ca4e25413be..3c7a05ba475 100644 --- a/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp +++ b/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp @@ -30,10 +30,8 @@ using namespace Mantid::Kernel; using namespace std; using namespace Poco::XML; -using Geometry::Instrument; using Geometry::Instrument_sptr; using Geometry::Instrument_const_sptr; -using Mantid::Geometry::InstrumentDefinitionParser; namespace Mantid { namespace DataHandling { diff --git a/Framework/DataHandling/src/LoadIDFFromNexus.cpp b/Framework/DataHandling/src/LoadIDFFromNexus.cpp index 74305f3eedf..c42586f08ac 100644 --- a/Framework/DataHandling/src/LoadIDFFromNexus.cpp +++ b/Framework/DataHandling/src/LoadIDFFromNexus.cpp @@ -18,7 +18,6 @@ using Poco::XML::DOMParser; using Poco::XML::Document; using Poco::XML::Element; using Poco::XML::NodeList; -using Poco::XML::NodeIterator; namespace Mantid { namespace DataHandling { @@ -27,7 +26,6 @@ DECLARE_ALGORITHM(LoadIDFFromNexus) using namespace Kernel; using namespace API; -using Geometry::Instrument; /// Empty default constructor LoadIDFFromNexus::LoadIDFFromNexus() {} diff --git a/Framework/DataHandling/src/LoadInstrument.cpp b/Framework/DataHandling/src/LoadInstrument.cpp index e75051d8c92..c06b4bee16d 100644 --- a/Framework/DataHandling/src/LoadInstrument.cpp +++ b/Framework/DataHandling/src/LoadInstrument.cpp @@ -23,13 +23,6 @@ #include <fstream> #include "MantidGeometry/Instrument/InstrumentDefinitionParser.h" -using Poco::XML::DOMParser; -using Poco::XML::Document; -using Poco::XML::Element; -using Poco::XML::Node; -using Poco::XML::NodeList; -using Poco::XML::NodeIterator; -using Poco::XML::NodeFilter; namespace Mantid { namespace DataHandling { diff --git a/Framework/DataHandling/src/LoadLog.cpp b/Framework/DataHandling/src/LoadLog.cpp index ef50c84e5dc..d9b412bbd17 100644 --- a/Framework/DataHandling/src/LoadLog.cpp +++ b/Framework/DataHandling/src/LoadLog.cpp @@ -34,7 +34,6 @@ using API::FileProperty; using API::MatrixWorkspace; using API::MatrixWorkspace_sptr; using API::WorkspaceProperty; -using DataObjects::Workspace2D; using DataObjects::Workspace2D_sptr; /// Empty default constructor diff --git a/Framework/DataHandling/src/LoadMask.cpp b/Framework/DataHandling/src/LoadMask.cpp index 4e3e20a442d..eb2b44eda00 100644 --- a/Framework/DataHandling/src/LoadMask.cpp +++ b/Framework/DataHandling/src/LoadMask.cpp @@ -29,8 +29,6 @@ #include <boost/algorithm/string.hpp> using Poco::XML::DOMParser; -using Poco::XML::Document; -using Poco::XML::Element; using Poco::XML::Node; using Poco::XML::NodeList; using Poco::XML::NodeIterator; diff --git a/Framework/DataHandling/src/LoadMuonLog.cpp b/Framework/DataHandling/src/LoadMuonLog.cpp index 0730663af6c..c0b1758454f 100644 --- a/Framework/DataHandling/src/LoadMuonLog.cpp +++ b/Framework/DataHandling/src/LoadMuonLog.cpp @@ -19,7 +19,6 @@ using API::WorkspaceProperty; using API::MatrixWorkspace; using API::MatrixWorkspace_sptr; using API::FileProperty; -using DataObjects::Workspace2D; using DataObjects::Workspace2D_sptr; using API::Progress; diff --git a/Framework/DataHandling/src/LoadMuonNexus1.cpp b/Framework/DataHandling/src/LoadMuonNexus1.cpp index fb06559c48c..c257aeb10c4 100644 --- a/Framework/DataHandling/src/LoadMuonNexus1.cpp +++ b/Framework/DataHandling/src/LoadMuonNexus1.cpp @@ -44,7 +44,6 @@ DECLARE_NEXUS_FILELOADER_ALGORITHM(LoadMuonNexus1) using namespace Kernel; using namespace API; -using Geometry::Instrument; using namespace Mantid::NeXus; using HistogramData::BinEdges; using HistogramData::Counts; diff --git a/Framework/DataHandling/src/LoadNexusMonitors2.cpp b/Framework/DataHandling/src/LoadNexusMonitors2.cpp index e061969627b..f5b3146b492 100644 --- a/Framework/DataHandling/src/LoadNexusMonitors2.cpp +++ b/Framework/DataHandling/src/LoadNexusMonitors2.cpp @@ -27,7 +27,6 @@ using Mantid::API::WorkspaceGroup_sptr; using Mantid::DataObjects::EventWorkspace; using Mantid::DataObjects::EventWorkspace_sptr; using Mantid::HistogramData::BinEdges; -using Mantid::HistogramData::CountStandardDeviations; using Mantid::HistogramData::Counts; using Mantid::HistogramData::Histogram; diff --git a/Framework/DataHandling/src/LoadParameterFile.cpp b/Framework/DataHandling/src/LoadParameterFile.cpp index bf8c811d770..886831c1c65 100644 --- a/Framework/DataHandling/src/LoadParameterFile.cpp +++ b/Framework/DataHandling/src/LoadParameterFile.cpp @@ -19,10 +19,6 @@ using Poco::XML::DOMParser; using Poco::XML::Document; using Poco::XML::Element; -using Poco::XML::Node; -using Poco::XML::NodeList; -using Poco::XML::NodeIterator; -using Poco::XML::NodeFilter; using Poco::XML::AutoPtr; using Mantid::Geometry::InstrumentDefinitionParser; diff --git a/Framework/DataHandling/src/LoadSpice2D.cpp b/Framework/DataHandling/src/LoadSpice2D.cpp index 04096230e33..334b8d7c568 100644 --- a/Framework/DataHandling/src/LoadSpice2D.cpp +++ b/Framework/DataHandling/src/LoadSpice2D.cpp @@ -41,9 +41,6 @@ using Poco::XML::DOMParser; using Poco::XML::Document; using Poco::XML::Element; -using Poco::XML::NodeList; -using Poco::XML::Node; -using Poco::XML::Text; namespace Mantid { namespace DataHandling { diff --git a/Framework/DataHandling/src/RemoveLogs.cpp b/Framework/DataHandling/src/RemoveLogs.cpp index 78d2a8a5358..866095c0a15 100644 --- a/Framework/DataHandling/src/RemoveLogs.cpp +++ b/Framework/DataHandling/src/RemoveLogs.cpp @@ -29,7 +29,6 @@ DECLARE_ALGORITHM(RemoveLogs) using namespace Kernel; using namespace API; -using DataObjects::Workspace2D; using DataObjects::Workspace2D_sptr; /// Empty default constructor diff --git a/Framework/DataHandling/src/RotateSource.cpp b/Framework/DataHandling/src/RotateSource.cpp index 0d36be1bcb0..8298f0209ef 100644 --- a/Framework/DataHandling/src/RotateSource.cpp +++ b/Framework/DataHandling/src/RotateSource.cpp @@ -10,7 +10,6 @@ namespace DataHandling { using Mantid::Kernel::Direction; using Mantid::Kernel::Quat; -using Mantid::Kernel::V3D; using Mantid::API::WorkspaceProperty; // Register the algorithm into the AlgorithmFactory diff --git a/Framework/DataHandling/src/SaveNXTomo.cpp b/Framework/DataHandling/src/SaveNXTomo.cpp index 3b82c5aa249..1f3ba5ee9a1 100644 --- a/Framework/DataHandling/src/SaveNXTomo.cpp +++ b/Framework/DataHandling/src/SaveNXTomo.cpp @@ -25,7 +25,6 @@ DECLARE_ALGORITHM(SaveNXTomo) using namespace Kernel; using namespace API; using namespace DataObjects; -using Geometry::RectangularDetector; const std::string SaveNXTomo::NXTOMO_VER = "2.0"; diff --git a/Framework/DataHandling/src/SetSample.cpp b/Framework/DataHandling/src/SetSample.cpp index 38e26879877..91a7af8124e 100644 --- a/Framework/DataHandling/src/SetSample.cpp +++ b/Framework/DataHandling/src/SetSample.cpp @@ -26,8 +26,6 @@ using Geometry::Goniometer; using Geometry::ReferenceFrame; using Geometry::SampleEnvironment; using Kernel::Logger; -using Kernel::PropertyWithValue; -using Kernel::Quat; using Kernel::V3D; namespace { diff --git a/Framework/DataHandling/src/UpdateInstrumentFromFile.cpp b/Framework/DataHandling/src/UpdateInstrumentFromFile.cpp index bf1b296db4c..ee95cd63326 100644 --- a/Framework/DataHandling/src/UpdateInstrumentFromFile.cpp +++ b/Framework/DataHandling/src/UpdateInstrumentFromFile.cpp @@ -25,7 +25,6 @@ DECLARE_ALGORITHM(UpdateInstrumentFromFile) using namespace Kernel; using namespace API; -using Geometry::Instrument; using Geometry::Instrument_sptr; using Geometry::IDetector_sptr; using Kernel::V3D; diff --git a/Framework/DataObjects/src/EventList.cpp b/Framework/DataObjects/src/EventList.cpp index 64dd418bad5..61fe656050c 100644 --- a/Framework/DataObjects/src/EventList.cpp +++ b/Framework/DataObjects/src/EventList.cpp @@ -28,7 +28,6 @@ using std::vector; namespace Mantid { namespace DataObjects { -using Kernel::Exception::NotImplementedError; using Kernel::DateAndTime; using namespace Mantid::API; diff --git a/Framework/DataObjects/src/EventWorkspace.cpp b/Framework/DataObjects/src/EventWorkspace.cpp index 16300d59692..bcd4447d60a 100644 --- a/Framework/DataObjects/src/EventWorkspace.cpp +++ b/Framework/DataObjects/src/EventWorkspace.cpp @@ -23,7 +23,6 @@ #include <numeric> using namespace boost::posix_time; -using Mantid::API::ISpectrum; using Mantid::Kernel::DateAndTime; namespace Mantid { diff --git a/Framework/DataObjects/src/Events.cpp b/Framework/DataObjects/src/Events.cpp index 778ff1d65fa..4fc7dbcf381 100644 --- a/Framework/DataObjects/src/Events.cpp +++ b/Framework/DataObjects/src/Events.cpp @@ -8,13 +8,10 @@ #include <stdexcept> using std::ostream; -using std::runtime_error; using std::size_t; -using std::vector; namespace Mantid { namespace DataObjects { -using Kernel::Exception::NotImplementedError; using Kernel::DateAndTime; //========================================================================== diff --git a/Framework/DataObjects/src/GroupingWorkspace.cpp b/Framework/DataObjects/src/GroupingWorkspace.cpp index 7ceaf8d868d..ebd731d59aa 100644 --- a/Framework/DataObjects/src/GroupingWorkspace.cpp +++ b/Framework/DataObjects/src/GroupingWorkspace.cpp @@ -4,7 +4,6 @@ #include "MantidAPI/WorkspaceFactory.h" #include "MantidAPI/SpectraAxis.h" -using Mantid::API::SpectraAxis; using std::size_t; using namespace Mantid::API; diff --git a/Framework/DataObjects/src/OffsetsWorkspace.cpp b/Framework/DataObjects/src/OffsetsWorkspace.cpp index 12e155ac82c..f8ec4be1fd4 100644 --- a/Framework/DataObjects/src/OffsetsWorkspace.cpp +++ b/Framework/DataObjects/src/OffsetsWorkspace.cpp @@ -4,7 +4,6 @@ #include "MantidAPI/WorkspaceFactory.h" #include "MantidAPI/SpectraAxis.h" -using Mantid::API::SpectraAxis; namespace Mantid { namespace DataObjects { diff --git a/Framework/DataObjects/src/SpecialWorkspace2D.cpp b/Framework/DataObjects/src/SpecialWorkspace2D.cpp index 4eb62097903..ee51294cce4 100644 --- a/Framework/DataObjects/src/SpecialWorkspace2D.cpp +++ b/Framework/DataObjects/src/SpecialWorkspace2D.cpp @@ -6,7 +6,6 @@ #include <fstream> #include <sstream> -using Mantid::API::SpectraAxis; using std::set; using std::size_t; diff --git a/Framework/DataObjects/src/Workspace2D.cpp b/Framework/DataObjects/src/Workspace2D.cpp index a9047b9024d..bc015f8cc3e 100644 --- a/Framework/DataObjects/src/Workspace2D.cpp +++ b/Framework/DataObjects/src/Workspace2D.cpp @@ -11,7 +11,6 @@ #include <algorithm> #include <sstream> -using Mantid::API::ISpectrum; using Mantid::API::MantidImage; namespace Mantid { diff --git a/Framework/Geometry/src/Crystal/ReducedCell.cpp b/Framework/Geometry/src/Crystal/ReducedCell.cpp index d6690856101..17fefd2197a 100644 --- a/Framework/Geometry/src/Crystal/ReducedCell.cpp +++ b/Framework/Geometry/src/Crystal/ReducedCell.cpp @@ -6,7 +6,6 @@ namespace Mantid { namespace Geometry { -using Mantid::Kernel::V3D; using Mantid::Kernel::DblMatrix; /** diff --git a/Framework/Geometry/src/Instrument/ComponentHelper.cpp b/Framework/Geometry/src/Instrument/ComponentHelper.cpp index 7f8ba49d842..19813d19cd6 100644 --- a/Framework/Geometry/src/Instrument/ComponentHelper.cpp +++ b/Framework/Geometry/src/Instrument/ComponentHelper.cpp @@ -13,7 +13,6 @@ namespace Mantid { namespace Geometry { namespace ComponentHelper { using Kernel::V3D; -using Kernel::Quat; /** * createOneDetectorInstrument, creates the most simple possible definition of diff --git a/Framework/Geometry/src/Instrument/Detector.cpp b/Framework/Geometry/src/Instrument/Detector.cpp index 7f315823778..324d481934e 100644 --- a/Framework/Geometry/src/Instrument/Detector.cpp +++ b/Framework/Geometry/src/Instrument/Detector.cpp @@ -15,7 +15,6 @@ Kernel::Logger g_log("Detector"); } using Kernel::V3D; -using Kernel::Quat; /** Constructor for a parametrized Detector * @param base: the base (un-parametrized) IComponent diff --git a/Framework/Geometry/src/Instrument/RectangularDetector.cpp b/Framework/Geometry/src/Instrument/RectangularDetector.cpp index 67434f4b69a..da83a559386 100644 --- a/Framework/Geometry/src/Instrument/RectangularDetector.cpp +++ b/Framework/Geometry/src/Instrument/RectangularDetector.cpp @@ -36,7 +36,6 @@ namespace Mantid { namespace Geometry { using Kernel::V3D; -using Kernel::Quat; using Kernel::Matrix; /** Empty constructor diff --git a/Framework/Geometry/src/Instrument/SampleEnvironment.cpp b/Framework/Geometry/src/Instrument/SampleEnvironment.cpp index a714c507e80..16fb7a1ff65 100644 --- a/Framework/Geometry/src/Instrument/SampleEnvironment.cpp +++ b/Framework/Geometry/src/Instrument/SampleEnvironment.cpp @@ -11,7 +11,6 @@ namespace Mantid { namespace Geometry { using Geometry::BoundingBox; using Geometry::Track; -using Kernel::Material; using Kernel::V3D; //------------------------------------------------------------------------------ diff --git a/Framework/Geometry/src/Instrument/StructuredDetector.cpp b/Framework/Geometry/src/Instrument/StructuredDetector.cpp index 9ef88606674..2c42ccb6cf0 100644 --- a/Framework/Geometry/src/Instrument/StructuredDetector.cpp +++ b/Framework/Geometry/src/Instrument/StructuredDetector.cpp @@ -20,8 +20,6 @@ namespace Mantid { namespace Geometry { using Kernel::V3D; -using Kernel::Quat; -using Kernel::Matrix; /** Empty constructor */ diff --git a/Framework/Geometry/src/Rendering/OCGeometryGenerator.cpp b/Framework/Geometry/src/Rendering/OCGeometryGenerator.cpp index c3986f19da9..4f82813e63c 100644 --- a/Framework/Geometry/src/Rendering/OCGeometryGenerator.cpp +++ b/Framework/Geometry/src/Rendering/OCGeometryGenerator.cpp @@ -66,8 +66,6 @@ GCC_DIAG_ON(cast-qual) #endif namespace Mantid { -using Kernel::V3D; -using Kernel::Quat; namespace Geometry { namespace { diff --git a/Framework/Geometry/src/Rendering/vtkGeometryCacheReader.cpp b/Framework/Geometry/src/Rendering/vtkGeometryCacheReader.cpp index 59ff1f80afc..6f9938bcbd4 100644 --- a/Framework/Geometry/src/Rendering/vtkGeometryCacheReader.cpp +++ b/Framework/Geometry/src/Rendering/vtkGeometryCacheReader.cpp @@ -8,13 +8,7 @@ #include <Poco/DOM/Element.h> using Poco::XML::DOMParser; -using Poco::XML::InputSource; using Poco::XML::Document; -using Poco::XML::NodeIterator; -using Poco::XML::NodeFilter; -using Poco::XML::Node; -using Poco::XML::AutoPtr; -using Poco::Exception; using Poco::XML::Element; #include "MantidKernel/Exception.h" diff --git a/Framework/HistogramData/src/Interpolate.cpp b/Framework/HistogramData/src/Interpolate.cpp index ee5691b4c86..8a0daace69a 100644 --- a/Framework/HistogramData/src/Interpolate.cpp +++ b/Framework/HistogramData/src/Interpolate.cpp @@ -8,7 +8,6 @@ #include <sstream> using Mantid::HistogramData::Histogram; -using Mantid::HistogramData::HistogramX; using Mantid::HistogramData::HistogramY; namespace { diff --git a/Framework/HistogramData/src/Rebin.cpp b/Framework/HistogramData/src/Rebin.cpp index c4de45aaf46..5c92d3337b7 100644 --- a/Framework/HistogramData/src/Rebin.cpp +++ b/Framework/HistogramData/src/Rebin.cpp @@ -12,7 +12,6 @@ using Mantid::HistogramData::CountStandardDeviations; using Mantid::HistogramData::CountVariances; using Mantid::HistogramData::Frequencies; using Mantid::HistogramData::FrequencyStandardDeviations; -using Mantid::HistogramData::FrequencyVariances; using Mantid::HistogramData::Exception::InvalidBinEdgesError; namespace { diff --git a/Framework/Kernel/src/GitHubApiHelper.cpp b/Framework/Kernel/src/GitHubApiHelper.cpp index 80c22b8871e..9950a4ca6b4 100644 --- a/Framework/Kernel/src/GitHubApiHelper.cpp +++ b/Framework/Kernel/src/GitHubApiHelper.cpp @@ -20,7 +20,6 @@ namespace Kernel { class ProxyInfo; using namespace Poco::Net; -using std::map; using std::string; namespace { diff --git a/Framework/Kernel/src/MaterialBuilder.cpp b/Framework/Kernel/src/MaterialBuilder.cpp index f3ec2f7a915..9d74c5bc1cf 100644 --- a/Framework/Kernel/src/MaterialBuilder.cpp +++ b/Framework/Kernel/src/MaterialBuilder.cpp @@ -9,7 +9,6 @@ namespace Mantid { using PhysicalConstants::Atom; using PhysicalConstants::NeutronAtom; using PhysicalConstants::getAtom; -using PhysicalConstants::getNeutronAtom; namespace Kernel { namespace { diff --git a/Framework/Kernel/src/Matrix.cpp b/Framework/Kernel/src/Matrix.cpp index 1c008b6aea1..0ea0bf2d2e5 100644 --- a/Framework/Kernel/src/Matrix.cpp +++ b/Framework/Kernel/src/Matrix.cpp @@ -10,7 +10,6 @@ #include <memory> #include <sstream> -using Mantid::Kernel::TimeSeriesProperty; namespace Mantid { diff --git a/Framework/Kernel/src/PropertyNexus.cpp b/Framework/Kernel/src/PropertyNexus.cpp index 21e1f1b6d48..52adfefa0e9 100644 --- a/Framework/Kernel/src/PropertyNexus.cpp +++ b/Framework/Kernel/src/PropertyNexus.cpp @@ -19,8 +19,6 @@ using namespace Mantid::Kernel; using namespace ::NeXus; -using boost::algorithm::is_any_of; -using boost::algorithm::split; #ifdef _WIN32 #pragma warning(push) diff --git a/Framework/MDAlgorithms/src/BinMD.cpp b/Framework/MDAlgorithms/src/BinMD.cpp index 1215f58cf55..742298dd2ad 100644 --- a/Framework/MDAlgorithms/src/BinMD.cpp +++ b/Framework/MDAlgorithms/src/BinMD.cpp @@ -17,8 +17,6 @@ #include "MantidKernel/Utils.h" #include <boost/algorithm/string.hpp> -using Mantid::Kernel::CPUTimer; -using Mantid::Kernel::EnabledWhenProperty; namespace Mantid { namespace MDAlgorithms { diff --git a/Framework/MDAlgorithms/src/LoadSQW2.cpp b/Framework/MDAlgorithms/src/LoadSQW2.cpp index e63f5f0da91..2c278d4e528 100644 --- a/Framework/MDAlgorithms/src/LoadSQW2.cpp +++ b/Framework/MDAlgorithms/src/LoadSQW2.cpp @@ -23,14 +23,12 @@ namespace Mantid { namespace MDAlgorithms { using API::ExperimentInfo; -using Geometry::MDHistoDimension; using Geometry::MDHistoDimensionBuilder; using Geometry::Goniometer; using Geometry::OrientedLattice; using Kernel::BinaryStreamReader; using Kernel::Logger; using Kernel::DblMatrix; -using Kernel::Matrix; using Kernel::V3D; namespace { diff --git a/Framework/MDAlgorithms/src/Quantification/FitResolutionConvolvedModel.cpp b/Framework/MDAlgorithms/src/Quantification/FitResolutionConvolvedModel.cpp index a024ce17b21..3d823286ba2 100644 --- a/Framework/MDAlgorithms/src/Quantification/FitResolutionConvolvedModel.cpp +++ b/Framework/MDAlgorithms/src/Quantification/FitResolutionConvolvedModel.cpp @@ -21,7 +21,6 @@ using API::ITableWorkspace; using API::ITableWorkspace_sptr; using API::IMDEventWorkspace; using API::IMDEventWorkspace_sptr; -using API::MatrixWorkspace; using API::MatrixWorkspace_sptr; using API::WorkspaceProperty; diff --git a/Framework/MDAlgorithms/src/Quantification/Resolution/TobyFitResolutionModel.cpp b/Framework/MDAlgorithms/src/Quantification/Resolution/TobyFitResolutionModel.cpp index 96cc4486aa7..aa4e5a9ef97 100644 --- a/Framework/MDAlgorithms/src/Quantification/Resolution/TobyFitResolutionModel.cpp +++ b/Framework/MDAlgorithms/src/Quantification/Resolution/TobyFitResolutionModel.cpp @@ -17,11 +17,9 @@ namespace Mantid { namespace MDAlgorithms { -using Geometry::Instrument; using Geometry::Instrument_const_sptr; using Geometry::IObjComponent_const_sptr; using Geometry::IDetector_const_sptr; -using API::Run; using API::IFunction; DECLARE_MDRESOLUTIONCONVOLUTION(TobyFitResolutionModel, diff --git a/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp b/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp index cbaa125ff96..9f77ee6db28 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp @@ -19,7 +19,6 @@ using namespace Mantid::API; using namespace boost::python; -using Mantid::Kernel::AbstractInstantiator; using Mantid::PythonInterface::PythonObjectInstantiator; GET_POINTER_SPECIALIZATION(AlgorithmFactoryImpl) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp b/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp index b699be35b9c..21f061e5da2 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp @@ -12,8 +12,6 @@ #include <boost/python/self.hpp> using Mantid::API::AlgorithmHistory; -using Mantid::Kernel::PropertyHistory; -using Mantid::API::IAlgorithm; using namespace boost::python; namespace Policies = Mantid::PythonInterface::Policies; diff --git a/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp b/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp index 6f7d4a31985..6532b0e3de5 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp @@ -5,7 +5,6 @@ #include <boost/python/overloads.hpp> using namespace Mantid::API; -using Mantid::Kernel::Direction; using Mantid::PythonInterface::DataProcessorAdapter; using namespace boost::python; diff --git a/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp b/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp index bc9e49abf89..720051a367e 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp @@ -19,7 +19,6 @@ using Mantid::API::FunctionFactoryImpl; using Mantid::API::FunctionFactory; using Mantid::API::IFunction; using Mantid::PythonInterface::PythonObjectInstantiator; -using Mantid::Kernel::AbstractInstantiator; using namespace boost::python; diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp index 072acf479a6..b63c7f867d5 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/IEventWorkspace.h" using Mantid::API::IEventWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<IEventWorkspace>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp index a435fc7b192..9a9e369db65 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp @@ -5,7 +5,6 @@ using Mantid::API::IFunction1D; using Mantid::API::IFunction; using Mantid::PythonInterface::IFunction1DAdapter; -using Mantid::PythonInterface::IFunctionAdapter; using namespace boost::python; void export_IFunction1D() { diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp index eb64fc21343..3aeadee0944 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/IMDEventWorkspace.h" using Mantid::API::IMDEventWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<IMDEventWorkspace>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp index c2f6be6772f..edfd31deeda 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/IMDHistoWorkspace.h" using Mantid::API::IMDHistoWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<IMDHistoWorkspace>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp index 75659624329..fe5928b9104 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/IMDWorkspace.h" using Mantid::API::IMDWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<IMDWorkspace>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp index 6d3b85e291a..572e2f956de 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/IPeaksWorkspace.h" using Mantid::API::IPeaksWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<IPeaksWorkspace>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp index 9592521ea0f..732dbdc1cdd 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/ITableWorkspace.h" using Mantid::API::ITableWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<ITableWorkspace>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp index aa85f1d6ea2..820b8739e07 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/MatrixWorkspace.h" using Mantid::API::MatrixWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<MatrixWorkspace>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp b/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp index 2afa721fc67..e779d84e0e2 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp @@ -10,7 +10,6 @@ using Mantid::API::Sample; using Mantid::Geometry::OrientedLattice; -using Mantid::Kernel::Material; using namespace boost::python; GET_POINTER_SPECIALIZATION(Material) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp index 5522dfe1b2a..0d33ce4fce5 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp @@ -3,7 +3,6 @@ #include "MantidAPI/WorkspaceGroup.h" using Mantid::API::WorkspaceGroup; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<WorkspaceGroup>) diff --git a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp index 05c2b45cf20..9d53db73f7a 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp @@ -12,8 +12,6 @@ #include <boost/python/self.hpp> using Mantid::API::WorkspaceHistory; -using Mantid::API::AlgorithmHistory; -using Mantid::API::IAlgorithm; using namespace boost::python; namespace Policies = Mantid::PythonInterface::Policies; diff --git a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp index 53f5e602d29..c93eade44e5 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp @@ -4,7 +4,6 @@ #include <boost/python/enum.hpp> using Mantid::API::Workspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<Workspace>) diff --git a/Framework/PythonInterface/mantid/dataobjects/src/Exports/EventWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/dataobjects/src/Exports/EventWorkspaceProperty.cpp index 18f1de77c03..871f9e39d72 100644 --- a/Framework/PythonInterface/mantid/dataobjects/src/Exports/EventWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/dataobjects/src/Exports/EventWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidDataObjects/EventWorkspace.h" using Mantid::DataObjects::EventWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<EventWorkspace>) diff --git a/Framework/PythonInterface/mantid/dataobjects/src/Exports/MaskWorkspaceProperty.cpp b/Framework/PythonInterface/mantid/dataobjects/src/Exports/MaskWorkspaceProperty.cpp index a85a555a4ba..8e38c0aa36b 100644 --- a/Framework/PythonInterface/mantid/dataobjects/src/Exports/MaskWorkspaceProperty.cpp +++ b/Framework/PythonInterface/mantid/dataobjects/src/Exports/MaskWorkspaceProperty.cpp @@ -3,7 +3,6 @@ #include "MantidDataObjects/MaskWorkspace.h" using Mantid::DataObjects::MaskWorkspace; -using Mantid::API::WorkspaceProperty; GET_POINTER_SPECIALIZATION(WorkspaceProperty<MaskWorkspace>) diff --git a/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp b/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp index 77d988b3fdb..870442defbc 100644 --- a/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp +++ b/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp @@ -7,7 +7,6 @@ #include <boost/python/register_ptr_to_python.hpp> using Mantid::Geometry::ReferenceFrame; -using Mantid::Kernel::V3D; using namespace boost::python; GET_POINTER_SPECIALIZATION(ReferenceFrame) diff --git a/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp b/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp index d5e385ed2bc..b42bf2eec70 100644 --- a/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp +++ b/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp @@ -13,7 +13,6 @@ using Mantid::Geometry::Group; using Mantid::Geometry::SpaceGroup; -using Mantid::Geometry::SymmetryOperation; using namespace boost::python; GET_POINTER_SPECIALIZATION(SpaceGroup) diff --git a/Framework/PythonInterface/mantid/kernel/src/Environment/ErrorHandling.cpp b/Framework/PythonInterface/mantid/kernel/src/Environment/ErrorHandling.cpp index 82053974103..8c991c048a3 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Environment/ErrorHandling.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Environment/ErrorHandling.cpp @@ -12,7 +12,6 @@ #include <stdexcept> using boost::python::extract; -using boost::python::object; namespace Mantid { namespace PythonInterface { diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/Atom.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/Atom.cpp index 1d0de62fcce..b74e5bcf1ef 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/Atom.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/Atom.cpp @@ -9,7 +9,6 @@ using Mantid::PhysicalConstants::Atom; using Mantid::PhysicalConstants::getAtom; -using Mantid::PhysicalConstants::NeutronAtom; using namespace boost::python; namespace { diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp index 039f55eac53..2c223e962ac 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp @@ -10,7 +10,6 @@ #include <boost/python/register_ptr_to_python.hpp> using Mantid::Kernel::Material; -using Mantid::PhysicalConstants::Atom; using Mantid::PhysicalConstants::NeutronAtom; using namespace boost::python; diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp index 67461ed0099..6afa71964e1 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp @@ -20,9 +20,7 @@ using Mantid::Kernel::Property; using Mantid::Kernel::Direction; -using Mantid::Kernel::AbstractInstantiator; using Mantid::PythonInterface::std_vector_exporter; -using Mantid::PythonInterface::PythonObjectInstantiator; using namespace boost::python; GET_POINTER_SPECIALIZATION(Property) diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManagerProperty.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManagerProperty.cpp index c5e916f7056..2a04f3d761f 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManagerProperty.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManagerProperty.cpp @@ -15,7 +15,6 @@ using Mantid::Kernel::Direction; using Mantid::Kernel::PropertyManagerProperty; using Mantid::Kernel::PropertyManager_sptr; -using Mantid::Kernel::PropertyWithValue; using Mantid::PythonInterface::PropertyWithValueExporter; namespace Registry = Mantid::PythonInterface::Registry; using namespace boost::python; diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp index 8b5bf0a8154..3781c0999db 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp @@ -12,7 +12,6 @@ using Mantid::Kernel::V3D; using boost::python::arg; using boost::python::init; using boost::python::class_; -using boost::python::self; using boost::python::copy_const_reference; using boost::python::return_value_policy; diff --git a/Framework/PythonInterface/mantid/kernel/src/Registry/MappingTypeHandler.cpp b/Framework/PythonInterface/mantid/kernel/src/Registry/MappingTypeHandler.cpp index 0ef7925eae5..805a3a38bb0 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Registry/MappingTypeHandler.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Registry/MappingTypeHandler.cpp @@ -9,15 +9,10 @@ #include <boost/python/dict.hpp> using boost::python::dict; -using boost::python::handle; -using boost::python::len; using boost::python::object; namespace Mantid { -using Kernel::Direction; -using Kernel::PropertyManager; using Kernel::PropertyManager_sptr; -using Kernel::PropertyWithValue; namespace PythonInterface { namespace Registry { diff --git a/Framework/ScriptRepository/src/ScriptRepositoryImpl.cpp b/Framework/ScriptRepository/src/ScriptRepositoryImpl.cpp index e06f2da0426..9b4842cde20 100644 --- a/Framework/ScriptRepository/src/ScriptRepositoryImpl.cpp +++ b/Framework/ScriptRepository/src/ScriptRepositoryImpl.cpp @@ -14,8 +14,6 @@ using Mantid::Kernel::DateAndTime; using Mantid::Kernel::Logger; using Mantid::Kernel::ConfigService; using Mantid::Kernel::ConfigServiceImpl; -using Mantid::Kernel::ProxyInfo; -using Mantid::Kernel::NetworkProxy; // from poco #include <Poco/Path.h> diff --git a/MantidPlot/src/Mantid/MantidCurve.cpp b/MantidPlot/src/Mantid/MantidCurve.cpp index b2582bec54d..e2bed8788b8 100644 --- a/MantidPlot/src/Mantid/MantidCurve.cpp +++ b/MantidPlot/src/Mantid/MantidCurve.cpp @@ -12,7 +12,6 @@ #include "ErrorBarSettings.h" #include "MantidKernel/CPUTimer.h" -using Mantid::Kernel::CPUTimer; /** Constructor diff --git a/MantidPlot/src/Mantid/MantidPlotUtilities.cpp b/MantidPlot/src/Mantid/MantidPlotUtilities.cpp index a68b2d41bce..5a4bfeeae15 100644 --- a/MantidPlot/src/Mantid/MantidPlotUtilities.cpp +++ b/MantidPlot/src/Mantid/MantidPlotUtilities.cpp @@ -12,9 +12,6 @@ using Mantid::API::WorkspaceGroup_const_sptr; using Mantid::API::WorkspaceGroup_sptr; using Mantid::API::MatrixWorkspace_const_sptr; using Mantid::API::MatrixWorkspace_sptr; -using Mantid::API::MatrixWorkspace; -using Mantid::API::ExperimentInfo; -using Mantid::HistogramData::Histogram; /**Compare two CurveSpecs to sort according to log value and * if equal by workspace index. diff --git a/MantidPlot/src/Mantid/MantidSurfaceContourPlotGenerator.cpp b/MantidPlot/src/Mantid/MantidSurfaceContourPlotGenerator.cpp index 71eb1e9904a..b30568c85ee 100644 --- a/MantidPlot/src/Mantid/MantidSurfaceContourPlotGenerator.cpp +++ b/MantidPlot/src/Mantid/MantidSurfaceContourPlotGenerator.cpp @@ -14,7 +14,6 @@ using Mantid::API::WorkspaceGroup_sptr; using Mantid::API::MatrixWorkspace_const_sptr; using Mantid::API::MatrixWorkspace_sptr; using Mantid::API::MatrixWorkspace; -using Mantid::API::ExperimentInfo; using Mantid::HistogramData::Histogram; /** diff --git a/MantidPlot/src/Mantid/MantidUI.cpp b/MantidPlot/src/Mantid/MantidUI.cpp index 22a3a994184..9b584025b7b 100644 --- a/MantidPlot/src/Mantid/MantidUI.cpp +++ b/MantidPlot/src/Mantid/MantidUI.cpp @@ -103,7 +103,6 @@ using namespace Mantid::API; using namespace MantidQt::API; using namespace MantidQt::MantidWidgets; using MantidQt::MantidWidgets::MantidWSIndexDialog; -using MantidQt::MantidWidgets::MantidTreeWidget; using Mantid::Kernel::DateAndTime; using MantidQt::SliceViewer::SliceViewerWindow; diff --git a/qt/scientific_interfaces/Indirect/DensityOfStates.cpp b/qt/scientific_interfaces/Indirect/DensityOfStates.cpp index 8b5920230f2..f458a80e6da 100644 --- a/qt/scientific_interfaces/Indirect/DensityOfStates.cpp +++ b/qt/scientific_interfaces/Indirect/DensityOfStates.cpp @@ -9,7 +9,6 @@ #include <QString> using namespace Mantid::API; -using MantidQt::API::BatchAlgorithmRunner; namespace { Mantid::Kernel::Logger g_log("DensityOfStates"); diff --git a/qt/scientific_interfaces/Indirect/IndirectBayesTab.cpp b/qt/scientific_interfaces/Indirect/IndirectBayesTab.cpp index f5e710d7fcf..6677fe9a598 100644 --- a/qt/scientific_interfaces/Indirect/IndirectBayesTab.cpp +++ b/qt/scientific_interfaces/Indirect/IndirectBayesTab.cpp @@ -4,7 +4,6 @@ #include "MantidQtWidgets/Common/UserSubWindow.h" #include "IndirectBayesTab.h" -using MantidQt::MantidWidgets::RangeSelector; namespace MantidQt { namespace CustomInterfaces { diff --git a/qt/scientific_interfaces/MultiDatasetFit/MDFDataController.cpp b/qt/scientific_interfaces/MultiDatasetFit/MDFDataController.cpp index 25a64473aa6..3382c857a8b 100644 --- a/qt/scientific_interfaces/MultiDatasetFit/MDFDataController.cpp +++ b/qt/scientific_interfaces/MultiDatasetFit/MDFDataController.cpp @@ -23,7 +23,6 @@ namespace MantidQt { namespace CustomInterfaces { namespace MDF { -using Mantid::Kernel::Math::StatisticType; /// Constructor. DataController::DataController(MultiDatasetFit *parent, QTableWidget *dataTable) diff --git a/qt/scientific_interfaces/MultiDatasetFit/MultiDatasetFit.cpp b/qt/scientific_interfaces/MultiDatasetFit/MultiDatasetFit.cpp index d036983a5da..a563cec425f 100644 --- a/qt/scientific_interfaces/MultiDatasetFit/MultiDatasetFit.cpp +++ b/qt/scientific_interfaces/MultiDatasetFit/MultiDatasetFit.cpp @@ -29,7 +29,6 @@ Mantid::Kernel::Logger g_log("MultiDatasetFit"); namespace MantidQt { namespace CustomInterfaces { -using Mantid::Kernel::Math::StatisticType; // Register the class with the factory DECLARE_SUBWINDOW(MultiDatasetFit) diff --git a/qt/widgets/instrumentview/src/CompAssemblyActor.cpp b/qt/widgets/instrumentview/src/CompAssemblyActor.cpp index 197d992055d..cffee32477a 100644 --- a/qt/widgets/instrumentview/src/CompAssemblyActor.cpp +++ b/qt/widgets/instrumentview/src/CompAssemblyActor.cpp @@ -19,7 +19,6 @@ #include <cfloat> -using Mantid::Geometry::Instrument; using Mantid::Geometry::IComponent; using Mantid::Geometry::IObjComponent; using Mantid::Geometry::ICompAssembly; @@ -27,8 +26,6 @@ using Mantid::Geometry::ObjCompAssembly; using Mantid::Geometry::ComponentID; using Mantid::Geometry::RectangularDetector; using Mantid::Geometry::StructuredDetector; -using Mantid::Geometry::IDetector; -using Mantid::Geometry::Object; namespace MantidQt { namespace MantidWidgets { diff --git a/qt/widgets/instrumentview/src/InstrumentTreeModel.cpp b/qt/widgets/instrumentview/src/InstrumentTreeModel.cpp index 422c9bf7545..73c8037b4b1 100644 --- a/qt/widgets/instrumentview/src/InstrumentTreeModel.cpp +++ b/qt/widgets/instrumentview/src/InstrumentTreeModel.cpp @@ -8,7 +8,6 @@ #include "MantidGeometry/Instrument.h" #include "MantidAPI/MatrixWorkspace.h" -using Mantid::Geometry::Instrument; using Mantid::Geometry::IComponent; using Mantid::Geometry::ICompAssembly; using Mantid::Geometry::IObjComponent; diff --git a/qt/widgets/instrumentview/src/UnwrappedSurface.cpp b/qt/widgets/instrumentview/src/UnwrappedSurface.cpp index e57e273cca4..31432d38bf4 100644 --- a/qt/widgets/instrumentview/src/UnwrappedSurface.cpp +++ b/qt/widgets/instrumentview/src/UnwrappedSurface.cpp @@ -24,7 +24,6 @@ #include "MantidKernel/Exception.h" using namespace Mantid::Geometry; -using Mantid::Kernel::Exception::NotFoundError; namespace MantidQt { namespace MantidWidgets { diff --git a/qt/widgets/refdetectorview/src/RefMatrixWSImageView.cpp b/qt/widgets/refdetectorview/src/RefMatrixWSImageView.cpp index d4f144629f9..310ec2a296c 100644 --- a/qt/widgets/refdetectorview/src/RefMatrixWSImageView.cpp +++ b/qt/widgets/refdetectorview/src/RefMatrixWSImageView.cpp @@ -9,8 +9,6 @@ using Mantid::API::MatrixWorkspace_sptr; using namespace MantidQt; using namespace RefDetectorViewer; -using Mantid::API::WorkspaceProperty; -using Mantid::API::Algorithm; using namespace Mantid::Kernel; using namespace Mantid::API; diff --git a/qt/widgets/sliceviewer/src/SliceViewer.cpp b/qt/widgets/sliceviewer/src/SliceViewer.cpp index a10123cd15c..ee8c1fa0eeb 100644 --- a/qt/widgets/sliceviewer/src/SliceViewer.cpp +++ b/qt/widgets/sliceviewer/src/SliceViewer.cpp @@ -66,8 +66,6 @@ using Poco::XML::Document; using Poco::XML::Element; using Poco::XML::Node; using Poco::XML::NodeList; -using Poco::XML::NodeIterator; -using Poco::XML::NodeFilter; using MantidQt::API::AlgorithmRunner; namespace MantidQt { -- GitLab