Skip to content

Commit d694a2e

Browse files
committed
Remove unnecessary reference from ProjectInformation to parent project options panel.
1 parent 6453534 commit d694a2e

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

src/AddIns/BackendBindings/CppBinding/CppBinding/Project/ApplicationOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public ProjectProperty<string> ConfigurationType {
112112
protected override void Initialize()
113113
{
114114
base.Initialize();
115-
this.projectInformation.SetProjectOptions(this);
116115

117116
foreach (IClass c in GetPossibleStartupObjects(base.Project)) {
118117
startupObjectComboBox.Items.Add(c.FullyQualifiedName);

src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ApplicationSettings.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public ApplicationSettings()
4040
protected override void Initialize()
4141
{
4242
base.Initialize();
43-
this.projectInformation.SetProjectOptions(this);
4443
startupObjectComboBox.Items.Clear();
4544
foreach (IClass c in GetPossibleStartupObjects(base.Project)) {
4645
startupObjectComboBox.Items.Add(c.FullyQualifiedName);

src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ProjectInformation.xaml.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,14 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
2121
/// <summary>
2222
/// Interaction logic for ProjectInformation.xaml
2323
/// </summary>
24-
public partial class ProjectInformation : UserControl,IProjectUserControl, INotifyPropertyChanged
24+
public partial class ProjectInformation : UserControl, INotifyPropertyChanged
2525
{
26-
private ProjectOptionPanel projectOptions;
27-
2826
public ProjectInformation()
2927
{
3028
InitializeComponent();
3129
this.DataContext = this;
3230
}
3331

34-
public void SetProjectOptions(ProjectOptionPanel projectOptions)
35-
{
36-
if (projectOptions == null) {
37-
throw new ArgumentNullException("projectOptions");
38-
}
39-
this.projectOptions = projectOptions;
40-
}
41-
42-
public bool SaveProjectOptions()
43-
{
44-
throw new NotImplementedException();
45-
}
46-
4732
private string projectFolder;
4833

4934
public string ProjectFolder {

0 commit comments

Comments
 (0)