Page MenuHomePhabricator

Remove unused functions in seeder/db.h
ClosedPublic

Authored by nakihito on Dec 11 2019, 01:03.

Details

Reviewers
deadalnix
Fabien
jasonbcox
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rSTAGING1d1a86083dda: Remove unused functions in seeder/db.h
rABC1d1a86083dda: Remove unused functions in seeder/db.h
Summary

These functions are not used at all.

Test Plan
make check

The following 5 commands should output nothing:

grep -rnI Skipped\(
grep -rnI Skipped_\(
grep -rnI Bad\(
grep -rnI Get\(
grep -rnI GetMany_\(
grep -rnI Good\(

The last command above should output the following:

db.h:115:        ret.fGood = IsGood();
db.h:120:    bool IsGood() const {
db.h:161:        if (IsGood()) {
db.h:183:        if (IsGood()) {
db.h:406:                    if (info.IsGood()) {
db.cpp:100:    if (info.IsGood() && goodId.count(id) == 0) {
db.cpp:131:        if (/*!info.IsGood() && */ goodId.count(id) == 1) {

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Dec 11 2019, 01:03
deadalnix requested changes to this revision.Dec 11 2019, 02:18

If you are going to clean this up, actually clean it up. There are other dead functions, in fact there is a function that is declared and NEVER defined anywhere.

This revision now requires changes to proceed.Dec 11 2019, 02:18
nakihito edited the test plan for this revision. (Show Details)

Removed two more functions.

This revision is now accepted and ready to land.Dec 13 2019, 02:49
This revision was automatically updated to reflect the committed changes.