1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Deprecated DeleteAndClearItems

This commit is contained in:
Brian Fiete 2021-01-02 09:08:25 -08:00
parent bd57172996
commit 1be37e6f24
8 changed files with 17 additions and 7 deletions

View file

@ -1195,7 +1195,7 @@ namespace IDE
}
var aDialog = QuerySaveFiles(changedList);
DeleteAndClearItems!(changedList);
ClearAndDeleteItems(changedList);
aDialog.mDefaultButton = aDialog.AddButton("Save", new (evt) =>
{
@ -2977,7 +2977,7 @@ namespace IDE
using (data.Open("MainDockingFrame"))
DeserializeDockingFrame(data, mDockingFrame);
DeleteAndClearItems!(mRecentlyDisplayedFiles);
ClearAndDeleteItems(mRecentlyDisplayedFiles);
for (data.Enumerate("RecentFilesList"))
{
String relPath = scope String();

View file

@ -1938,7 +1938,7 @@ namespace IDE
ReadStrings("EnvironmentVars", options.mDebugOptions.mEnvironmentVars);
// BeefOptions
DeleteAndClearItems!(options.mBeefOptions.mPreprocessorMacros);
ClearAndDeleteItems(options.mBeefOptions.mPreprocessorMacros);
if (data.Contains("PreprocessorMacros"))
{
for (var _preproc in data.Enumerate("PreprocessorMacros"))

View file

@ -220,7 +220,7 @@ namespace IDE
public void Clear()
{
DeleteAndClearItems!(mCmdList);
ClearAndDeleteItems(mCmdList);
mFailed = false;
mCurCmd = null;
}

View file

@ -924,7 +924,7 @@ namespace IDE
{
HashSet<String> usedCommands = scope .();
List<String> allocatedStrs = scope .();
defer { DeleteAndClearItems!(allocatedStrs); }
defer { ClearAndDeleteItems(allocatedStrs); }
List<Entry> newEntries = new .();
for (let cmdStr in sd.Enumerate())

View file

@ -87,7 +87,7 @@ namespace IDE.ui
void GetEntries()
{
DeleteAndClearItems!(mEntries);
ClearAndDeleteItems(mEntries);
ResolveParams resolveParams = scope ResolveParams();
mSourceViewPanel.Classify(ResolveType.GetNavigationData, resolveParams);
if (resolveParams.mNavigationData != null)

View file

@ -6390,7 +6390,7 @@ namespace IDE.ui
}
else
{
DeleteAndClearItems!(mErrorList);
ClearAndDeleteItems(mErrorList);
}
int32 errorCount = processingPassInstance.GetErrorCount();