Skip to content

Commit

Permalink
Removes unnecessary references to static _soundDict
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Sep 9, 2024
1 parent 2943ccb commit ae28cc4
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion scripts/VinylGetMetadata/VinylGetMetadata.gml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

function VinylGetMetadata(_pattern, _default = undefined)
{
static _soundDict = __VinylSystem().__soundDict;
static _patternDict = __VinylSystem().__patternDict;

if (is_handle(_pattern))
Expand Down
1 change: 0 additions & 1 deletion scripts/VinylPlay/VinylPlay.gml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

function VinylPlay(_pattern, _loop = undefined, _gain = 1, _pitch = 1, _duckerName = undefined, _duckPrio = undefined)
{
static _soundDict = __VinylSystem().__soundDict;
static _patternDict = __VinylSystem().__patternDict;

if (is_handle(_pattern))
Expand Down
1 change: 0 additions & 1 deletion scripts/VinylPlayOn/VinylPlayOn.gml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

function VinylPlayOn(_emitter, _pattern, _loop = undefined, _gain = 1, _pitch = 1, _duckerName = undefined, _duckPrio = undefined)
{
static _soundDict = __VinylSystem().__soundDict;
static _patternDict = __VinylSystem().__patternDict;

if (is_handle(_pattern))
Expand Down
1 change: 0 additions & 1 deletion scripts/VinylSetMixForAssetTag/VinylSetMixForAssetTag.gml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function VinylSetMixForAssetTag(_mixName, _assetTag)
{
static _system = __VinylSystem();
static _toUpdateArray = _system.__toUpdateArray;
static _soundDict = _system.__soundDict;

if (_mixName == VINYL_NO_MIX) _mixName = undefined;

Expand Down
1 change: 0 additions & 1 deletion scripts/VinylSetMixForAssets/VinylSetMixForAssets.gml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function VinylSetMixForAssets()
{
static _system = __VinylSystem();
static _toUpdateArray = _system.__toUpdateArray;
static _soundDict = _system.__soundDict;
static _patternDict = _system.__patternDict;

var _mixName = argument[0];
Expand Down
2 changes: 1 addition & 1 deletion scripts/VinylSetupExportJSON/VinylSetupExportJSON.gml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

function VinylSetupExportJSON(_ignoreEmpty = true)
{
static _duckerArray = __VinylSystem().__duckerArray;
static _duckerArray = __VinylSystem().__duckerArray;
static _mixDict = __VinylSystem().__mixDict;
static _patternDict = __VinylSystem().__patternDict;
static _soundDict = __VinylSystem().__soundDict;
Expand Down
3 changes: 1 addition & 2 deletions scripts/VinylSetupSound/VinylSetupSound.gml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

function VinylSetupSound(_sound, _gain = 1, _pitch = 1, _loop = undefined, _mixName = VINYL_DEFAULT_MIX, _duckerName = undefined, _duckPrio = undefined, _emitterAlias = undefined, _metadata = undefined)
{
static _system = __VinylSystem();
static _soundDict = _system.__soundDict;
static _system = __VinylSystem();

if (is_array(_gain))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

function __VinylClassPatternBlend(_patternName, _soundArray, _loop, _gain, _animCurve, _mixName, _duckerName, _duckPrio, _metadata) constructor
{
static _soundDict = __VinylSystem().__soundDict;
static _toUpdateArray = __VinylSystem().__toUpdateArray;


Expand Down
1 change: 0 additions & 1 deletion scripts/__VinylClassVoiceBlend/__VinylClassVoiceBlend.gml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

function __VinylClassVoiceBlend(_emitter, _pattern, _loopLocal, _gainLocal, _pitchLocal, _duckerNameLocal, _duckPrioLocal, _mixName) constructor
{
static _soundDict = __VinylSystem().__soundDict;
static _mixDict = __VinylSystem().__mixDict;
static _duckerDict = __VinylSystem().__duckerDict;
static _voiceToStructMap = __VinylSystem().__voiceToStructMap;
Expand Down
1 change: 0 additions & 1 deletion scripts/__VinylClassVoiceQueue/__VinylClassVoiceQueue.gml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function __VinylClassVoiceQueue(_behaviour, _loopQueue, _gainLocal, _emitter) co
static _queueCount = 0;

static _duckerDict = __VinylSystem().__duckerDict;
static _soundDict = __VinylSystem().__soundDict;
static _voiceToStructMap = __VinylSystem().__voiceToStructMap;
static _voiceUpdateArray = __VinylSystem().__voiceUpdateArray;
static _toUpdateArray = __VinylSystem().__toUpdateArray;
Expand Down
1 change: 0 additions & 1 deletion scripts/__VinylClassVoiceSound/__VinylClassVoiceSound.gml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

function __VinylClassVoiceSound(_voice, _loopLocal, _gainSound, _gainLocal, _gainMix, _gainDuck, _pitchSound, _pitchLocal, _duckerNameLocal, _duckPrioLocal, _pattern) constructor
{
static _soundDict = __VinylSystem().__soundDict;
static _voiceToStructMap = __VinylSystem().__voiceToStructMap;
static _voiceUpdateArray = __VinylSystem().__voiceUpdateArray;
static _toUpdateArray = __VinylSystem().__toUpdateArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
function __VinylEnsureSoundVoice(_voice)
{
static _voiceToStructMap = __VinylSystem().__voiceToStructMap;
static _soundDict = __VinylSystem().__soundDict;
static _mixDict = __VinylSystem().__mixDict;
static _nullVoice = __VinylSystem().__nullVoice;

Expand Down
2 changes: 1 addition & 1 deletion scripts/__VinylSetupExportGML/__VinylSetupExportGML.gml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

function __VinylSetupExportGML(_useMacros = false, _ignoreEmpty = true)
{
static _duckerDict = __VinylSystem().__duckerDict;
static _duckerDict = __VinylSystem().__duckerDict;
static _mixDict = __VinylSystem().__mixDict;
static _patternDict = __VinylSystem().__patternDict;
static _soundDict = __VinylSystem().__soundDict;
Expand Down
1 change: 0 additions & 1 deletion scripts/__VinylSoundGetGain/__VinylSoundGetGain.gml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

function __VinylSoundGetGain(_sound)
{
static _soundDict = __VinylSystem().__soundDict;
return __VinylEnsurePatternSound(_sound).__gain;
}
1 change: 0 additions & 1 deletion scripts/__VinylSoundGetPitch/__VinylSoundGetPitch.gml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

function __VinylSoundGetPitch(_sound)
{
static _soundDict = __VinylSystem().__soundDict;
return __VinylEnsurePatternSound(_sound).__pitch;
}

0 comments on commit ae28cc4

Please sign in to comment.