diff options
author | Stefan Saraev <stefan@saraev.ca> | 2017-03-27 22:12:40 +0300 |
---|---|---|
committer | Stefan Saraev <stefan@saraev.ca> | 2017-04-07 20:14:12 +0300 |
commit | bee51e139fff45c788b9eb1e161b297d5ee7895b (patch) | |
tree | 69ad126aa511f7cf8ef70047c4ec28cad1f21888 /lib/UnrarXLib/system.cpp | |
parent | 1d718acfb13b0681805867dc6ce4f9715c0d0216 (diff) |
[cleanup] remove UnrarXLib
Diffstat (limited to 'lib/UnrarXLib/system.cpp')
-rw-r--r-- | lib/UnrarXLib/system.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lib/UnrarXLib/system.cpp b/lib/UnrarXLib/system.cpp deleted file mode 100644 index ab2eb73a48..0000000000 --- a/lib/UnrarXLib/system.cpp +++ /dev/null @@ -1,58 +0,0 @@ -#include "rar.hpp" - -#ifndef _WIN_CE -static int SleepTime=0; - -void InitSystemOptions(int SleepTime) -{ - ::SleepTime=SleepTime; -} -#endif - - -#if !defined(SFX_MODULE) && !defined(_WIN_CE) - -#if defined(_WIN_32) && !defined(BELOW_NORMAL_PRIORITY_CLASS) -#define BELOW_NORMAL_PRIORITY_CLASS 0x00004000 -#define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000 -#endif - -void SetPriority(int Priority) -{ -#if defined(_WIN_32) - uint PriorityClass; - int PriorityLevel; - if (Priority<1 || Priority>15) - return; - if (Priority==1) - { - PriorityClass=IDLE_PRIORITY_CLASS; - PriorityLevel=THREAD_PRIORITY_IDLE; - } - else - if (Priority<7) - { - PriorityClass=IDLE_PRIORITY_CLASS; - PriorityLevel=Priority-4; - } - else - if (Priority<11) - { - PriorityClass=NORMAL_PRIORITY_CLASS; - PriorityLevel=Priority-9; - } - else - { - PriorityClass=HIGH_PRIORITY_CLASS; - PriorityLevel=Priority-13; - } - SetPriorityClass(GetCurrentProcess(),PriorityClass); - SetThreadPriority(GetCurrentThread(),PriorityLevel); -#endif -} -#endif - - -void Wait() -{ -} |