mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Dead code removal.
This commit is contained in:
parent
b543868351
commit
7913fa7bbd
2 changed files with 2 additions and 18 deletions
|
@ -116,16 +116,6 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define ZT_MAX_PEER_NETWORK_PATHS 4
|
#define ZT_MAX_PEER_NETWORK_PATHS 4
|
||||||
|
|
||||||
/**
|
|
||||||
* Feature flag: ZeroTier One was built to be thread-safe -- concurrent processXXX() calls are okay
|
|
||||||
*/
|
|
||||||
#define ZT_FEATURE_FLAG_THREAD_SAFE 0x00000001
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Feature flag: FIPS compliant build (not available yet, but reserved for future use if we ever do this)
|
|
||||||
*/
|
|
||||||
#define ZT_FEATURE_FLAG_FIPS 0x00000002
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum number of hops in a ZeroTier circuit test
|
* Maximum number of hops in a ZeroTier circuit test
|
||||||
*
|
*
|
||||||
|
@ -1833,9 +1823,8 @@ void ZT_Node_backgroundThreadMain(ZT_Node *node);
|
||||||
* @param major Result: major version
|
* @param major Result: major version
|
||||||
* @param minor Result: minor version
|
* @param minor Result: minor version
|
||||||
* @param revision Result: revision
|
* @param revision Result: revision
|
||||||
* @param featureFlags: Result: feature flag bitmap
|
|
||||||
*/
|
*/
|
||||||
void ZT_version(int *major,int *minor,int *revision,unsigned long *featureFlags);
|
void ZT_version(int *major,int *minor,int *revision);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -1023,16 +1023,11 @@ void ZT_Node_backgroundThreadMain(ZT_Node *node)
|
||||||
} catch ( ... ) {}
|
} catch ( ... ) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZT_version(int *major,int *minor,int *revision,unsigned long *featureFlags)
|
void ZT_version(int *major,int *minor,int *revision)
|
||||||
{
|
{
|
||||||
if (major) *major = ZEROTIER_ONE_VERSION_MAJOR;
|
if (major) *major = ZEROTIER_ONE_VERSION_MAJOR;
|
||||||
if (minor) *minor = ZEROTIER_ONE_VERSION_MINOR;
|
if (minor) *minor = ZEROTIER_ONE_VERSION_MINOR;
|
||||||
if (revision) *revision = ZEROTIER_ONE_VERSION_REVISION;
|
if (revision) *revision = ZEROTIER_ONE_VERSION_REVISION;
|
||||||
if (featureFlags) {
|
|
||||||
*featureFlags = (
|
|
||||||
ZT_FEATURE_FLAG_THREAD_SAFE
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|
Loading…
Add table
Reference in a new issue