зеркало из https://github.com/mozilla/pjs.git
Bug 648508 - Remove the Windows CE code for accelerometer support (follow up); r=jst
This commit is contained in:
Родитель
13018da33c
Коммит
dafa751ea0
|
@ -39,8 +39,6 @@
|
|||
#include "nsIServiceManager.h"
|
||||
#include "windows.h"
|
||||
|
||||
#if !defined(WINCE) && !defined(WINCE_WINDOWS_MOBILE) // normal windows.
|
||||
|
||||
////////////////////////////
|
||||
// ThinkPad
|
||||
////////////////////////////
|
||||
|
@ -121,8 +119,6 @@ ThinkPadSensor::GetValues(double *x, double *y, double *z)
|
|||
*z = 1.0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
nsAccelerometerSystem::nsAccelerometerSystem(){}
|
||||
nsAccelerometerSystem::~nsAccelerometerSystem(){}
|
||||
|
||||
|
@ -145,14 +141,10 @@ void nsAccelerometerSystem::Startup()
|
|||
|
||||
PRBool started = PR_FALSE;
|
||||
|
||||
#if !defined(WINCE) && !defined(WINCE_WINDOWS_MOBILE) // normal windows.
|
||||
|
||||
mSensor = new ThinkPadSensor();
|
||||
if (mSensor)
|
||||
started = mSensor->Startup();
|
||||
|
||||
#endif
|
||||
|
||||
if (!started)
|
||||
return;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче