]> Git Repo - VerusCoin.git/commitdiff
remove GetMedianTime( ) which is never used
authorKamil Domanski <[email protected]>
Tue, 13 May 2014 19:37:47 +0000 (21:37 +0200)
committerKamil Domanski <[email protected]>
Tue, 20 May 2014 12:58:21 +0000 (14:58 +0200)
src/main.cpp
src/main.h

index c54fa65233a5f170502297cb463e3bfb89b0201b..126b4ada51d5e34fc83702c0d5c654c7c7d800d1 100644 (file)
@@ -2575,19 +2575,6 @@ bool CBlockIndex::IsSuperMajority(int minVersion, const CBlockIndex* pstart, uns
     return (nFound >= nRequired);
 }
 
-int64_t CBlockIndex::GetMedianTime() const
-{
-    AssertLockHeld(cs_main);
-    const CBlockIndex* pindex = this;
-    for (int i = 0; i < nMedianTimeSpan/2; i++)
-    {
-        if (!chainActive.Next(pindex))
-            return GetBlockTime();
-        pindex = chainActive.Next(pindex);
-    }
-    return pindex->GetMedianTimePast();
-}
-
 void PushGetBlocks(CNode* pnode, CBlockIndex* pindexBegin, uint256 hashEnd)
 {
     AssertLockHeld(cs_main);
index f47c9ee8252a638531e4558d24eb251b0d9676dc..25f70e7ad46f1d01201ddb2f9652fe1989943887 100644 (file)
@@ -849,8 +849,6 @@ public:
         return pbegin[(pend - pbegin)/2];
     }
 
-    int64_t GetMedianTime() const;
-
     /**
      * Returns true if there are nRequired or more blocks of minVersion or above
      * in the last nToCheck blocks, starting at pstart and going backwards.
This page took 0.038488 seconds and 4 git commands to generate.