diff options
author | EdB <[email protected]> | 2015-04-24 12:59:54 +0200 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2015-04-29 12:44:53 +0000 |
commit | 1b4a1d0049646e574565bab38b8ae935c1c45fae (patch) | |
tree | ab089ca4170b52b5def37b70935fa7d2605dc633 /src/gallium/state_trackers/clover/util | |
parent | 3c61ff0d89da4a8cc921d131ce0c2480ddb111a0 (diff) |
clover: remove compat classes that match std one
Acked-by: Francisco Jerez <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/util')
-rw-r--r-- | src/gallium/state_trackers/clover/util/compat.cpp | 38 | ||||
-rw-r--r-- | src/gallium/state_trackers/clover/util/compat.hpp | 27 |
2 files changed, 0 insertions, 65 deletions
diff --git a/src/gallium/state_trackers/clover/util/compat.cpp b/src/gallium/state_trackers/clover/util/compat.cpp deleted file mode 100644 index 80d5b3ecf82..00000000000 --- a/src/gallium/state_trackers/clover/util/compat.cpp +++ /dev/null @@ -1,38 +0,0 @@ -// -// Copyright 2013 Francisco Jerez -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR -// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// - -#include "util/compat.hpp" - -using namespace clover::compat; - -exception::~exception() { -} - -const char * -exception::what() const { - return ""; -} - -const char * -runtime_error::what() const { - return _what.c_str(); -} diff --git a/src/gallium/state_trackers/clover/util/compat.hpp b/src/gallium/state_trackers/clover/util/compat.hpp index 735994f50a6..ea7d3a000be 100644 --- a/src/gallium/state_trackers/clover/util/compat.hpp +++ b/src/gallium/state_trackers/clover/util/compat.hpp @@ -411,33 +411,6 @@ namespace clover { private: mutable vector<char> v; }; - - template<typename T, typename S> - struct pair { - pair(T first, S second) : - first(first), second(second) {} - - T first; - S second; - }; - - class exception { - public: - exception() {} - virtual ~exception(); - - virtual const char *what() const; - }; - - class runtime_error : public exception { - public: - runtime_error(const string &what) : _what(what) {} - - virtual const char *what() const; - - protected: - string _what; - }; } } |