summaryrefslogtreecommitdiff
path: root/attic
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-05-29 18:36:17 +0000
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-05-29 18:36:17 +0000
commit67498e576ca08a665b41a1eceacf7756392062ab (patch)
treea41c4252c5fd911977e169ecf512a27bd61cda5e /attic
parenteae130467b737db608b6a3d276048324592fc7c5 (diff)
downloadinfinitytier-67498e576ca08a665b41a1eceacf7756392062ab.tar.gz
infinitytier-67498e576ca08a665b41a1eceacf7756392062ab.zip
Delete some obsolete stuff.
Diffstat (limited to 'attic')
-rw-r--r--attic/Range.hpp123
-rw-r--r--attic/update-dummy/README.txt3
-rw-r--r--attic/update-dummy/update-dummy.nfo6
-rw-r--r--attic/update-dummy/update-dummy.sh4
4 files changed, 0 insertions, 136 deletions
diff --git a/attic/Range.hpp b/attic/Range.hpp
deleted file mode 100644
index cd8290f6..00000000
--- 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 <http://www.gnu.org/licenses/>.
- *
- * --
- *
- * 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<typename T>
-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 a85f4200..00000000
--- 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 2aa173e0..00000000
--- 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 cafb6f90..00000000
--- a/attic/update-dummy/update-dummy.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-echo "Dummy updater -- run with opts: $*"
-exit 0