[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/htmesh
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2011-02-20 18:03:17
Message-ID: 20110220180317.EAC3FAC8D1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1221840 by khudyakov:
Remove cruft from SkipListElemets
M +0 -19 SkipListElement.cpp
M +1 -2 SkipListElement.h
--- trunk/KDE/kdeedu/kstars/kstars/htmesh/SkipListElement.cpp #1221839:1221840
@@ -7,9 +7,6 @@
*/
#include <iostream> // cout
-#include <iomanip> // setw()
-#include <stdlib.h> // rand(), drand48()
-#include <limits.h> // INT_MAX
#include "SkipListElement.h"
@@ -24,11 +21,6 @@
}
////////////////////////////////////////////////////////////////////////////////
-SkipListElement::~SkipListElement()
-{
-}
-
-////////////////////////////////////////////////////////////////////////////////
SkipListElement* SkipListElement::getElement(long level)
{
if (level > myLevel) {
@@ -55,17 +47,6 @@
static long xMatrix[SKIPLIST_MAXLEVEL][SKIPLIST_MAXLEVEL] = {{0}};
-void SkipListElement::prmatrix()
-{
- for(int i=0; i<SKIPLIST_MAXLEVEL; i++){
- for(int j=0; j<SKIPLIST_MAXLEVEL; j++){
- std::cout <<std::setw(4) << xMatrix[i][j];
- }
- std::cout << "; " << std::endl;
- }
-}
-
-
void SkipListElement::setLevel(long level)
{
// if(xFlag){ // do this once only
--- trunk/KDE/kdeedu/kstars/kstars/htmesh/SkipListElement.h #1221839:1221840
@@ -37,7 +37,6 @@
class LINKAGE SkipListElement{
public:
SkipListElement(long level = 0, Key key = 0, Value value = 0);
- ~SkipListElement();
/** get key of element */
Key getKey() const { return myKey; };
@@ -53,7 +52,7 @@
long getLevel() const {return(myLevel);};
/** Set level of element */
void setLevel(long level);
- static void prmatrix();
+
/** get next element in level */
SkipListElement* getElement(long level);
/** set next element in level */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic