Skip to content

Commit e290d32

Browse files
committed
fix:remove useless method.
1 parent eda4347 commit e290d32

6 files changed

Lines changed: 0 additions & 50 deletions

File tree

‎src/main/java/org/tron/core/db/AccountStore.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import org.tron.core.Wallet;
1515
import org.tron.core.capsule.AccountCapsule;
1616
import org.tron.core.db.common.iterator.AccountIterator;
17-
import org.tron.protos.Protocol.Account;
1817

1918
@Slf4j
2019
@Component

‎src/main/java/org/tron/core/db/AssetIssueStore.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import org.springframework.stereotype.Component;
1111
import org.tron.core.capsule.AssetIssueCapsule;
1212
import org.tron.core.db.common.iterator.AssetIssueIterator;
13-
import org.tron.protos.Contract.AssetIssueContract;
1413

1514
@Slf4j
1615
@Component

‎src/main/java/org/tron/core/db/BlockStore.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.tron.core.db.common.iterator.BlockIterator;
3232
import org.tron.core.exception.BadItemException;
3333
import org.tron.core.exception.ItemNotFoundException;
34-
import org.tron.core.exception.StoreException;
3534
import org.tron.protos.Protocol.Block;
3635

3736
@Slf4j

‎src/main/java/org/tron/core/db/TransactionStore.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import org.springframework.stereotype.Component;
1212
import org.tron.core.capsule.TransactionCapsule;
1313
import org.tron.core.db.common.iterator.TransactionIterator;
14-
import org.tron.protos.Protocol.Transaction;
1514

1615
@Slf4j
1716
@Component

‎src/main/java/org/tron/core/db/WitnessStore.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import org.tron.common.utils.StringUtil;
1212
import org.tron.core.capsule.WitnessCapsule;
1313
import org.tron.core.db.common.iterator.WitnessIterator;
14-
import org.tron.protos.Protocol.Witness;
1514

1615
@Slf4j
1716
@Component

‎src/test/java/org/tron/common/storage/leveldb/LevelDbDataSourceImplTest.java‎

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -264,49 +264,4 @@ public void getValuesPrev() {
264264
Assert.assertEquals("getValuesPrev2", 0, seekKeyLimitNext.size());
265265
dataSource.resetDb();
266266
}
267-
268-
@Test
269-
public void getValueNext() {
270-
LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl(
271-
Args.getInstance().getOutputDirectory(), "test_getValueNext_key");
272-
dataSource.initDB();
273-
dataSource.resetDb();
274-
275-
putSomeKeyValue(dataSource);
276-
byte[] bySeekKeyNext = dataSource.getValueNext("00000003aa".getBytes());
277-
Assert.assertArrayEquals("getValueNext1", value3, bySeekKeyNext);
278-
bySeekKeyNext = dataSource.getValueNext("00000003ff".getBytes());
279-
Assert.assertArrayEquals("getValueNext2", value4, bySeekKeyNext);
280-
bySeekKeyNext = dataSource.getValueNext("0000000100".getBytes());
281-
Assert.assertArrayEquals("getValueNext3", value1, bySeekKeyNext);
282-
bySeekKeyNext = dataSource.getValueNext("00000001ff".getBytes());
283-
Assert.assertArrayEquals("getValueNext4", value2, bySeekKeyNext);
284-
bySeekKeyNext = dataSource.getValueNext("0000000600".getBytes());
285-
Assert.assertArrayEquals("getValueNext5", value6, bySeekKeyNext);
286-
bySeekKeyNext = dataSource.getValueNext("00000006ff".getBytes());
287-
Assert.assertNull("getValueNext6", bySeekKeyNext);
288-
dataSource.resetDb();
289-
}
290-
291-
@Test
292-
public void getValuePrev() {
293-
LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl(
294-
Args.getInstance().getOutputDirectory(), "test_getValuePrev_key");
295-
dataSource.initDB();
296-
dataSource.resetDb();
297-
298-
putSomeKeyValue(dataSource);
299-
byte[] bySeekKeyPrev = dataSource.getValuePrev("00000003aa".getBytes());
300-
Assert.assertArrayEquals("getValuePrev1", value3, bySeekKeyPrev);
301-
bySeekKeyPrev = dataSource.getValuePrev("0000000300".getBytes());
302-
Assert.assertArrayEquals("getValuePrev2", value2, bySeekKeyPrev);
303-
bySeekKeyPrev = dataSource.getValuePrev("0000000100".getBytes());
304-
Assert.assertNull("getValuePrev3", bySeekKeyPrev);
305-
bySeekKeyPrev = dataSource.getValuePrev("00000001ff".getBytes());
306-
Assert.assertArrayEquals("getValuePrev4", value1, bySeekKeyPrev);
307-
bySeekKeyPrev = dataSource.getValuePrev("00000006ff".getBytes());
308-
Assert.assertNull("getValuePrev5", bySeekKeyPrev);
309-
bySeekKeyPrev = dataSource.getValuePrev("00000007ff".getBytes());
310-
dataSource.resetDb();
311-
}
312267
}

0 commit comments

Comments
 (0)