diff --git a/MetaMorpheus/EngineLayer/Ms2ScanWithSpecificMass.cs b/MetaMorpheus/EngineLayer/Ms2ScanWithSpecificMass.cs
index 4e0d8f4c4..394118a1e 100644
--- a/MetaMorpheus/EngineLayer/Ms2ScanWithSpecificMass.cs
+++ b/MetaMorpheus/EngineLayer/Ms2ScanWithSpecificMass.cs
@@ -152,46 +152,5 @@ public IsotopicEnvelope[] GetClosestExperimentalIsotopicEnvelopeList(double mini
IsotopicEnvelope[] isotopicEnvelopes = ExperimentalFragments.Skip(startIndex).Take(length).ToArray();
return isotopicEnvelopes;
}
-
- public double? GetClosestExperimentalFragmentMz(double theoreticalMz, out double? intensity)
- {
- if (TheScan.MassSpectrum.XArray.Length == 0)
- {
- intensity = null;
- return null;
- }
- intensity = TheScan.MassSpectrum.YArray[GetClosestFragmentMzIndex(theoreticalMz).Value];
- return TheScan.MassSpectrum.XArray[GetClosestFragmentMzIndex(theoreticalMz).Value];
- }
-
- private int? GetClosestFragmentMzIndex(double mz)
- {
- if (TheScan.MassSpectrum.XArray.Length == 0)
- {
- return null;
- }
- int index = Array.BinarySearch(TheScan.MassSpectrum.XArray, mz);
- if (index >= 0)
- {
- return index;
- }
- index = ~index;
-
- if (index >= TheScan.MassSpectrum.XArray.Length)
- {
- return index - 1;
- }
- if (index == 0)
- {
- return index;
- }
-
- if (mz - TheScan.MassSpectrum.XArray[index - 1] > TheScan.MassSpectrum.XArray[index] - mz)
- {
- return index;
- }
- return index - 1;
-
- }
}
}
\ No newline at end of file
diff --git a/MetaMorpheus/GUI/MainWindow.xaml b/MetaMorpheus/GUI/MainWindow.xaml
index 1a68e3e86..398e3f961 100644
--- a/MetaMorpheus/GUI/MainWindow.xaml
+++ b/MetaMorpheus/GUI/MainWindow.xaml
@@ -524,7 +524,7 @@
+ Style="{StaticResource ImportantButtonStyle}" Margin="0, 0, 1, 0" Width="140" FontSize="11" Visibility="Visible"/>