Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Oct 4, 2019
1 parent 13eb0fa commit 74ff988
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 61 deletions.
10 changes: 2 additions & 8 deletions src/BuildVision/Core/Services.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,8 @@ static Ret GetGlobalService<T, Ret>(IServiceProvider provider = null) where T :

public static DTE2 Dte2 => Dte as DTE2;

public static IVsSolution GetSolution(this IServiceProvider provider)
{
return GetGlobalService<SVsSolution, IVsSolution>(provider);
}
public static IVsSolution GetSolution(this IServiceProvider provider) => GetGlobalService<SVsSolution, IVsSolution>(provider);

public static IVsSolution GetSolution()
{
return GetGlobalService<SVsSolution, IVsSolution>();
}
public static IVsSolution GetSolution() => GetGlobalService<SVsSolution, IVsSolution>();
}
}
55 changes: 10 additions & 45 deletions src/BuildVision/Core/SolutionBuildEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,51 +64,16 @@ public int UpdateSolution_Done(int fSucceeded, int fModified, int fCancelCommand
}

#region Interface Implementation

public int UpdateSolution_Begin(ref int pfCancelUpdate)
{
return VSConstants.S_OK;
}

public int UpdateSolution_StartUpdate(ref int pfCancelUpdate)
{
return VSConstants.S_OK;
}

public int UpdateSolution_Cancel()
{
return VSConstants.S_OK;
}

public int OnActiveProjectCfgChange(IVsHierarchy pIVsHierarchy)
{
return VSConstants.S_OK;
}

public void UpdateSolution_EndUpdateAction(uint dwAction)
{
}

public void OnActiveProjectCfgChangeBatchBegin()
{
}

public void OnActiveProjectCfgChangeBatchEnd()
{
}

public void UpdateSolution_QueryDelayFirstUpdateAction(out int pfDelay)
{
pfDelay = 0;
}

public void UpdateSolution_BeginFirstUpdateAction()
{
}

public void UpdateSolution_EndLastUpdateAction()
{
}
public int UpdateSolution_Begin(ref int pfCancelUpdate) => VSConstants.S_OK;
public int UpdateSolution_StartUpdate(ref int pfCancelUpdate) => VSConstants.S_OK;
public int UpdateSolution_Cancel() => VSConstants.S_OK;
public int OnActiveProjectCfgChange(IVsHierarchy pIVsHierarchy) => VSConstants.S_OK;
public void UpdateSolution_QueryDelayFirstUpdateAction(out int pfDelay) => pfDelay = 0;
public void UpdateSolution_EndUpdateAction(uint dwAction) { }
public void OnActiveProjectCfgChangeBatchBegin() { }
public void OnActiveProjectCfgChangeBatchEnd() { }
public void UpdateSolution_BeginFirstUpdateAction() { }
public void UpdateSolution_EndLastUpdateAction() { }
#endregion
}
}
10 changes: 2 additions & 8 deletions src/BuildVision/Services/BuildInformationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,9 @@ public void ReloadCurrentProjects()
((ObservableRangeCollection< IProjectItem>)Projects).AddRange(_solutionProvider.GetProjects());
}

public void ResetCurrentProjects()
{
Projects.Clear();
}
public void ResetCurrentProjects() => Projects.Clear();

public void ResetBuildInformationModel()
{
BuildInformationModel.ResetState();
}
public void ResetBuildInformationModel() => BuildInformationModel.ResetState();

private void BuildOutputLogger_OnErrorRaised(BuildProjectContextEntry projectEntry, object e, ErrorLevel errorLevel)
{
Expand Down

0 comments on commit 74ff988

Please sign in to comment.