From 67498e576ca08a665b41a1eceacf7756392062ab Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 29 May 2014 18:36:17 +0000 Subject: [PATCH] Delete some obsolete stuff. --- attic/Range.hpp | 123 ---------------------------- attic/update-dummy/README.txt | 3 - attic/update-dummy/update-dummy.nfo | 6 -- attic/update-dummy/update-dummy.sh | 4 - netconf-service/test-input.txt | 15 ---- 5 files changed, 151 deletions(-) delete mode 100644 attic/Range.hpp delete mode 100644 attic/update-dummy/README.txt delete mode 100644 attic/update-dummy/update-dummy.nfo delete mode 100644 attic/update-dummy/update-dummy.sh delete mode 100644 netconf-service/test-input.txt diff --git a/attic/Range.hpp b/attic/Range.hpp deleted file mode 100644 index cd8290f68..000000000 --- a/attic/Range.hpp +++ /dev/null @@ -1,123 +0,0 @@ -/* - * ZeroTier One - Global Peer to Peer Ethernet - * Copyright (C) 2011-2014 ZeroTier Networks LLC - * - * 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 3 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, see . - * - * -- - * - * ZeroTier may be used and distributed under the terms of the GPLv3, which - * are available at: http://www.gnu.org/licenses/gpl-3.0.html - * - * If you would like to embed ZeroTier into a commercial application or - * redistribute it in a modified binary form, please contact ZeroTier Networks - * LLC. Start here: http://www.zerotier.com/ - */ - -#ifndef _ZT_RANGE_HPP -#define _ZT_RANGE_HPP - -namespace ZeroTier { - -/** - * A range of numeric values - * - * @tparam T Type, can be any numeric value (int, float, double, etc.) - */ -template -class Range -{ -public: - /** - * Construct an empty range - */ - Range() - throw() : - start(0), - end(0) - { - } - - /** - * @param s Starting value (inclusive) - * @param e Ending value (exclusive) - */ - Range(T s,T e) - throw() : - start(s), - end(e) - { - } - - /** - * Construct a range containing from n to n+1 (thus only n for integers) - * - * @param n Number to contain - */ - Range(T n) - throw() : - start(n), - end(n+1) - { - } - - /** - * @return end - start - */ - inline T magnitude() const - throw() - { - return (end - start); - } - - /** - * @return True if range contains something (magnitude is nonzero) - */ - inline operator bool() const - throw() - { - return (end > start); - } - - /** - * @param v Value to test - * @return True if value is between start (inclusive) and end (exclusive) - */ - inline bool operator()(const T &v) const - throw() - { - return ((v >= start)&&(v < end)); - } - - inline bool operator==(const Range &r) const throw() { return ((start == r.start)&&(end == r.end)); } - inline bool operator!=(const Range &r) const throw() { return (!(*this == r)); } - inline bool operator<(const Range &r) const throw() { return ((start < r.start) ? true : ((start == r.start) ? (end < r.end) : false)); } - inline bool operator>(const Range &r) const throw() { return (r < *this); } - inline bool operator<=(const Range &r) const throw() { return !(r < *this); } - inline bool operator>=(const Range &r) const throw() { return !(*this < r); } - - /** - * Start of range (may be modified directly) - */ - T start; - - /** - * End of range (may be modified directly) - */ - T end; -}; - -} // namespace ZeroTier - -#endif diff --git a/attic/update-dummy/README.txt b/attic/update-dummy/README.txt deleted file mode 100644 index a85f42000..000000000 --- a/attic/update-dummy/README.txt +++ /dev/null @@ -1,3 +0,0 @@ -This is a do-nothing placebo software update for internal testing. It's a -shell script that just prints a simple message and an .NFO file that signs -it as official. diff --git a/attic/update-dummy/update-dummy.nfo b/attic/update-dummy/update-dummy.nfo deleted file mode 100644 index 2aa173e0d..000000000 --- a/attic/update-dummy/update-dummy.nfo +++ /dev/null @@ -1,6 +0,0 @@ -vMajor=999 -vMinor=999 -vRevision=999 -signedBy=e9bc3707b5 -ed25519=ca7b943ace5451f420f1f599822d7013534a7cb7997096141e6a1aa6398c5f260c19dc5eecb297c922950f26dee7f9db787f8dbf85bc422baf3bff94c1131e086a7fc85c26dbb8c1b0a9cae63acc34998d9e1ce553156ea5638f9c99a50f6e2e -url=http://download.zerotier.com/update/update-dummy.sh diff --git a/attic/update-dummy/update-dummy.sh b/attic/update-dummy/update-dummy.sh deleted file mode 100644 index cafb6f90a..000000000 --- a/attic/update-dummy/update-dummy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -echo "Dummy updater -- run with opts: $*" -exit 0 diff --git a/netconf-service/test-input.txt b/netconf-service/test-input.txt deleted file mode 100644 index f71b690b6..000000000 --- a/netconf-service/test-input.txt +++ /dev/null @@ -1,15 +0,0 @@ -type=netconf-init -netconfId=8a89399f23:0:28067b5c4b9d2a43a25ae6a01babcd943fa60c35b4fd591d39ae5e16d69fe47c196dc90fa2fdaf4e2a4a57b505612c96722e0a0eafbdcf99efbc8031f1d7acd2:b000d2a0e6048d14fa5bb30bea26eb1b0c2c0e725a622f0ca611b2dfe001678c5c1a7326750d7080834e085c6c06621b91c2e00448a8dec5c11d89bd358ac294 - -type=netconf-request -peerId=ce9d545ed5:0:6eaf30f54f10bfad20df64a3eb129c08efb40901b35a0d1cb1ab2732ca8ce118f0375dd67db62c30adc5cb9ed9ca03d1090b68b9b59bf1cee163dc5fdbe9bcd5 -from=127.0.0.1:1234 -nwid=8a89399f234dcaf3 -requestId=1 - -type=netconf-request -peerId=ce9d545ed5:0:6eaf30f54f10bfad20df64a3eb129c08efb40901b35a0d1cb1ab2732ca8ce118f0375dd67db62c30adc5cb9ed9ca03d1090b68b9b59bf1cee163dc5fdbe9bcd5 -from=127.0.0.1:1234 -nwid=8a89399f234dcaf4 -requestId=2 -