From 39aa3d9cd3b2b6ba203cf98d91cb1c575a791580 Mon Sep 17 00:00:00 2001 From: hemmer <915048+hemmer@users.noreply.github.com> Date: Thu, 16 Sep 2021 18:17:00 +0100 Subject: [PATCH] Removed .yml ahead of pull request to upstream Removed unused Button/Knob --- .github/workflows/build-plugin.yml | 77 ------------------------------ src/plugin.hpp | 15 ------ 2 files changed, 92 deletions(-) delete mode 100644 .github/workflows/build-plugin.yml diff --git a/.github/workflows/build-plugin.yml b/.github/workflows/build-plugin.yml deleted file mode 100644 index 642cb6c..0000000 --- a/.github/workflows/build-plugin.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Build VCV Rack Plugin -on: [push, pull_request] - -env: - rack-sdk-version: 1.1.6 - -defaults: - run: - shell: bash - -jobs: - build: - name: ${{ matrix.config.name }} - runs-on: ${{ matrix.config.os }} - strategy: - matrix: - config: - - { - name: Linux, - os: ubuntu-18.04, - prepare-os: sudo apt install -y libglu-dev - } - - { - name: MacOS, - os: macos-latest, - prepare-os: "" - } - - { - name: Windows, - os: windows-latest, - prepare-os: export CC=gcc - } - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - - name: Get Rack-SDK - run: | - pushd $HOME - curl -o Rack-SDK.zip https://vcvrack.com/downloads/Rack-SDK-${{ env.rack-sdk-version }}.zip - unzip Rack-SDK.zip - - name: Patch plugin.mk, use 7zip on Windows - if: runner.os == 'Windows' - run: | - sed -i 's/zip -q -9 -r/7z a -tzip -mx=9/' $HOME/Rack-SDK/plugin.mk - - name: Patch Makefile to use old glibc versions - if: runner.os == 'Linux' - run: | - echo "FLAGS += -include force_link_glibc_2.23.h" >> Makefile - - name: Build plugin - run: | - ${{ matrix.config.prepare-os }} - export RACK_DIR=$HOME/Rack-SDK - make -j dep - make -j dist - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - path: dist - name: ${{ matrix.config.name }} - - publish: - name: Publish plugin - runs-on: ubuntu-18.04 - needs: build - steps: - - uses: actions/download-artifact@v2 - with: - path: _artifacts - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: true - title: "Development Build" - files: | - _artifacts/**/*.zip diff --git a/src/plugin.hpp b/src/plugin.hpp index 8b7292f..2ca52ec 100644 --- a/src/plugin.hpp +++ b/src/plugin.hpp @@ -130,14 +130,6 @@ struct Crossfader : app::SvgSlider { } }; -struct BefacoButton : app::SvgSwitch { - BefacoButton() { - momentary = true; - addFrame(APP->window->loadSvg(asset::plugin(pluginInstance, "res/BefacoButton_0.svg"))); - addFrame(APP->window->loadSvg(asset::plugin(pluginInstance, "res/BefacoButton_1.svg"))); - } -}; - struct BefacoSwitchHorizontal : app::SvgSwitch { BefacoSwitchHorizontal() { addFrame(APP->window->loadSvg(asset::plugin(pluginInstance, "res/BefacoSwitchHoriz_0.svg"))); @@ -146,13 +138,6 @@ struct BefacoSwitchHorizontal : app::SvgSwitch { } }; -struct BefacoTinyKnobSnap : BefacoTinyKnob { - BefacoTinyKnobSnap() { - snap = true; - minAngle = -0.80 * M_PI; - maxAngle = 0.80 * M_PI; - } -}; template T sin2pi_pade_05_5_4(T x) {