reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 821ddf8f7db17e12f6d139a9617c3cc389729f2a
parent 336973634e8e77c42c7bdf7f4ff583586d5a09d8
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Tue,  1 Dec 2015 22:49:45 -0500

remove unused StartCode enum

Diffstat:
Msrc/download.cpp | 5++---
Msrc/download.hpp | 10++--------
2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/src/download.cpp b/src/download.cpp @@ -64,10 +64,10 @@ void Download::TimerTick() plugin_register("-timer", (void*)TimerTick); } -Download::StartCode Download::start() +void Download::start() { if(m_threadHandle) - return AlreadyRunning; + return; reset(); @@ -75,7 +75,6 @@ Download::StartCode Download::start() plugin_register("timer", (void*)TimerTick); m_threadHandle = CreateThread(NULL, 0, Worker, (void *)this, 0, 0); - return Started; } void Download::stop() diff --git a/src/download.hpp b/src/download.hpp @@ -14,13 +14,6 @@ typedef std::function<void(int, const std::string &)> DownloadCallback; class Download { public: - enum StartCode { - Started, - AlreadyRunning, - FileExists, - WriteError, - }; - Download(const std::string &url); ~Download(); @@ -30,7 +23,8 @@ public: bool isAborted(); void addCallback(const DownloadCallback &); - StartCode start(); + + void start(); void stop(); private: