From 3b10476dc2a0835489f5c6b36ec1d87472273821 Mon Sep 17 00:00:00 2001 From: Veikko Sariola Date: Tue, 26 May 2020 16:35:19 +0300 Subject: [PATCH] Remove unused strucs / struc members; in particular: .params /.ports. --- src/opcodes/effects.inc | 10 ---------- src/opcodes/sinks.inc | 2 -- src/opcodes/sources.inc | 12 ------------ 3 files changed, 24 deletions(-) diff --git a/src/opcodes/effects.inc b/src/opcodes/effects.inc index 218f789..cd0be32 100644 --- a/src/opcodes/effects.inc +++ b/src/opcodes/effects.inc @@ -51,14 +51,12 @@ struc su_filter_ports .freq resd 1 .res resd 1 - .params endstruc struc su_filter_wrk .low resd 1 .high resd 1 .band resd 1 - .size endstruc ;------------------------------------------------------------------------------- @@ -88,7 +86,6 @@ endstruc struc su_pan_ports .panning resd 1 - .params endstruc ;------------------------------------------------------------------------------- @@ -118,7 +115,6 @@ endstruc struc su_distort_ports .drive resd 1 - .params endstruc ;------------------------------------------------------------------------------- @@ -148,7 +144,6 @@ endstruc struc su_hold_ports .freq resd 1 - .params endstruc struc su_hold_wrk @@ -183,7 +178,6 @@ endstruc struc su_crush_ports .resolution resd 1 - .params endstruc ;------------------------------------------------------------------------------- @@ -213,7 +207,6 @@ endstruc struc su_gain_ports .gain resd 1 - .params endstruc ;------------------------------------------------------------------------------- @@ -243,7 +236,6 @@ endstruc struc su_invgain_ports .invgain resd 1 - .params endstruc ;------------------------------------------------------------------------------- @@ -335,7 +327,6 @@ struc su_delay_ports .damp resd 1 .freq resd 1 .delaymod resd 1 ; note that this is not converted from integer, only modulated - .ports endstruc struc su_delayline_wrk @@ -382,7 +373,6 @@ struc su_compres_ports .release resd 1 .threshold resd 1 .ratio resd 1 - .ports endstruc struc su_compres_wrk diff --git a/src/opcodes/sinks.inc b/src/opcodes/sinks.inc index 4719c56..abd6518 100644 --- a/src/opcodes/sinks.inc +++ b/src/opcodes/sinks.inc @@ -24,7 +24,6 @@ struc su_out_ports .gain resd 1 - .params endstruc ;------------------------------------------------------------------------------- @@ -122,5 +121,4 @@ endstruc struc su_send_ports .amount resd 1 - .params endstruc diff --git a/src/opcodes/sources.inc b/src/opcodes/sources.inc index 2a48dd2..7f481fe 100644 --- a/src/opcodes/sources.inc +++ b/src/opcodes/sources.inc @@ -36,13 +36,11 @@ struc su_env_ports .sustain resd 1 .release resd 1 .gain resd 1 - .params endstruc struc su_env_work .state resd 1 .level resd 1 - .size endstruc %define ENV_STATE_ATTAC 0 @@ -114,13 +112,11 @@ struc su_osc_ports .color resd 1 .shape resd 1 .gain resd 1 - .params endstruc struc su_osc_wrk .phase resd 1 .gatestate equ 16 ; we put is late so only UNISON3 and UNISON4 are unusable with gate - .size endstruc %define TRANSPOSE(val) val @@ -159,7 +155,6 @@ struc su_sample_offset ; length conveniently 8, so easy to index .start resd 1 .loopstart resw 1 .looplength resw 1 - .size endstruc ;------------------------------------------------------------------------------- @@ -188,7 +183,6 @@ endstruc struc su_noise_ports .shape resd 1 .gain resd 1 - .params endstruc ;------------------------------------------------------------------------------- @@ -217,11 +211,6 @@ endstruc struc su_load_val_ports .value resd 1 - .params -endstruc - -struc su_load_val_wrk - .size endstruc ;------------------------------------------------------------------------------- @@ -246,7 +235,6 @@ endstruc %endmacro struc su_receive_ports - .params ; receive does not actually have params, left and right only through send .left resd 1 .right resd 1 endstruc