diff options
author | Cameron Cawley | 2019-06-20 21:14:04 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-06-21 08:19:37 +0300 |
commit | b9e29cedfc1ad4ee5930245de059fb1701bea793 (patch) | |
tree | d21907fd727eb26f6bc877ad8f35237b5799e7ae /backends/networking | |
parent | b49c7fa644928406b894f40fc26e514442eb16bf (diff) | |
download | scummvm-rg350-b9e29cedfc1ad4ee5930245de059fb1701bea793.tar.gz scummvm-rg350-b9e29cedfc1ad4ee5930245de059fb1701bea793.tar.bz2 scummvm-rg350-b9e29cedfc1ad4ee5930245de059fb1701bea793.zip |
ANDROID: Move isConnectionLimited into OSystem
Diffstat (limited to 'backends/networking')
-rw-r--r-- | backends/networking/connection/islimited-android.cpp | 35 | ||||
-rw-r--r-- | backends/networking/connection/islimited-default.cpp | 36 | ||||
-rw-r--r-- | backends/networking/connection/islimited.h | 39 |
3 files changed, 0 insertions, 110 deletions
diff --git a/backends/networking/connection/islimited-android.cpp b/backends/networking/connection/islimited-android.cpp deleted file mode 100644 index 8989f218ec..0000000000 --- a/backends/networking/connection/islimited-android.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* ScummVM - Graphic Adventure Engine - * - * ScummVM is the legal property of its developers, whose names - * are too numerous to list here. Please refer to the COPYRIGHT - * file distributed with this source distribution. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program 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 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. - * - */ - -#include "backends/networking/connection/islimited.h" -#include "backends/platform/android/jni.h" - -namespace Networking { -namespace Connection { - -bool isLimited() { - return JNI::isConnectionLimited(); -} - -} // End of namespace Connection -} // End of namespace Networking - diff --git a/backends/networking/connection/islimited-default.cpp b/backends/networking/connection/islimited-default.cpp deleted file mode 100644 index a993077fff..0000000000 --- a/backends/networking/connection/islimited-default.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* ScummVM - Graphic Adventure Engine - * - * ScummVM is the legal property of its developers, whose names - * are too numerous to list here. Please refer to the COPYRIGHT - * file distributed with this source distribution. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program 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 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. - * - */ - -#include "backends/networking/connection/islimited.h" -#include "common/textconsole.h" - -namespace Networking { -namespace Connection { - -bool isLimited() { - warning("Networking::Connection::isLimited(): not limited by default"); - return false; -} - -} // End of namespace Connection -} // End of namespace Networking - diff --git a/backends/networking/connection/islimited.h b/backends/networking/connection/islimited.h deleted file mode 100644 index b23d31d157..0000000000 --- a/backends/networking/connection/islimited.h +++ /dev/null @@ -1,39 +0,0 @@ -/* ScummVM - Graphic Adventure Engine - * - * ScummVM is the legal property of its developers, whose names - * are too numerous to list here. Please refer to the COPYRIGHT - * file distributed with this source distribution. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program 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 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. - * - */ - -#ifndef NETWORKING_CONNECTION_ISLIMITED_H -#define NETWORKING_CONNECTION_ISLIMITED_H - -namespace Networking { -namespace Connection { - -/** -* Returns whether connection's limited (if available on the target system). -* -* Returns true if connection seems limited. -*/ -bool isLimited(); - -} // End of namespace Connection -} // End of namespace Networking - -#endif /*NETWORKING_CONNECTION_ISLIMITED_H*/ |