Remove sg_sleep.*.

This commit is contained in:
Mathias Froehlich 2011-10-28 17:00:56 +02:00
parent cc4b16b50d
commit 269299d913
5 changed files with 2 additions and 115 deletions

View File

@ -671,14 +671,6 @@
RelativePath="..\..\simgear\misc\sg_path.hxx" RelativePath="..\..\simgear\misc\sg_path.hxx"
> >
</File> </File>
<File
RelativePath="..\..\simgear\misc\sg_sleep.cxx"
>
</File>
<File
RelativePath="..\..\simgear\misc\sg_sleep.hxx"
>
</File>
<File <File
RelativePath="..\..\simgear\misc\sgstream.cxx" RelativePath="..\..\simgear\misc\sgstream.cxx"
> >

View File

@ -7,7 +7,6 @@ set(HEADERS
interpolator.hxx interpolator.hxx
sg_dir.hxx sg_dir.hxx
sg_path.hxx sg_path.hxx
sg_sleep.hxx
sgstream.hxx sgstream.hxx
stdint.hxx stdint.hxx
stopwatch.hxx stopwatch.hxx
@ -24,7 +23,6 @@ set(SOURCES
interpolator.cxx interpolator.cxx
sg_dir.cxx sg_dir.cxx
sg_path.cxx sg_path.cxx
sg_sleep.cxx
sgstream.cxx sgstream.cxx
strutils.cxx strutils.cxx
tabbed_values.cxx tabbed_values.cxx

View File

@ -14,8 +14,7 @@ include_HEADERS = \
stdint.hxx \ stdint.hxx \
PathOptions.hxx \ PathOptions.hxx \
sg_dir.hxx \ sg_dir.hxx \
ResourceManager.hxx \ ResourceManager.hxx
sg_sleep.hxx
libsgmisc_a_SOURCES = \ libsgmisc_a_SOURCES = \
sg_path.cxx \ sg_path.cxx \
@ -27,8 +26,7 @@ libsgmisc_a_SOURCES = \
interpolator.cxx \ interpolator.cxx \
PathOptions.cxx \ PathOptions.cxx \
sg_dir.cxx \ sg_dir.cxx \
ResourceManager.cxx \ ResourceManager.cxx
sg_sleep.cxx
#noinst_PROGRAMS = tabbed_value_test swap_test #noinst_PROGRAMS = tabbed_value_test swap_test

View File

@ -1,60 +0,0 @@
// Written by James Turner, started July 2010.
//
// Copyright (C) 2010 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
#include <simgear/misc/sg_sleep.hxx>
#ifdef SG_WINDOWS
# include <windows.h>
#else
# include <unistd.h>
#endif
namespace simgear
{
#ifdef SG_WINDOWS
void sleepForSeconds(int seconds)
{
Sleep(1000 * seconds);
}
void sleepForMSec(int msec)
{
Sleep(msec);
}
#else
void sleepForSeconds(int seconds)
{
::sleep(seconds);
}
void sleepForMSec(int msec)
{
::usleep(msec * 1000);
}
#endif
} // of namespace simhear

View File

@ -1,41 +0,0 @@
// Written by James Turner, started July 2010.
//
// Copyright (C) 2010 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
#ifndef _SG_SLEEP_HXX
#define _SG_SLEEP_HXX
#include <simgear/compiler.h>
namespace simgear
{
void sleepForSeconds(int seconds);
void sleepForMSec(int msec);
} // of namespace simgear
#endif // _SG_SLEEP_HXX