1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

Remove unused globals

This commit is contained in:
Paul Licameli 2019-05-29 12:44:32 -04:00
parent d5314a1632
commit 0ae542cf08

View File

@ -379,12 +379,6 @@ BEGIN_EVENT_TABLE(ScrollBar, wxScrollBar)
END_EVENT_TABLE() END_EVENT_TABLE()
/* Define Global Variables */ /* Define Global Variables */
//The following global counts the number of documents that have been opened
//for the purpose of project placement (not to keep track of the number)
//It is only accurate modulo ten, and does not decrement when a project is
//closed.
static int gAudacityOffsetInc = 0;
static int gAudacityPosInc = 0;
//This is a pointer to the currently-active project. //This is a pointer to the currently-active project.
static AudacityProject *gActiveProject; static AudacityProject *gActiveProject;
//This array holds onto all of the projects currently open //This array holds onto all of the projects currently open
@ -722,10 +716,6 @@ AUDACITY_DLL_API void CloseAllProjects()
size_t len = gAudacityProjects.size(); size_t len = gAudacityProjects.size();
for (size_t i = 0; i < len; i++) for (size_t i = 0; i < len; i++)
GetProjectFrame( *gAudacityProjects[i] ).Close(); GetProjectFrame( *gAudacityProjects[i] ).Close();
//Set the Offset and Position increments to 0
gAudacityOffsetInc = 0;
gAudacityPosInc = 0;
} }
// BG: The default size and position of the first window // BG: The default size and position of the first window