Skip to content

Commit

Permalink
Removed unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgates108 committed Aug 2, 2024
1 parent 8c18d02 commit 83c4ddf
Show file tree
Hide file tree
Showing 36 changed files with 240 additions and 1,238 deletions.
10 changes: 0 additions & 10 deletions src/ccontrol/UserQuerySelect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
#include "global/constants.h"
#include "global/LogContext.h"
#include "proto/worker.pb.h"
#include "proto/ProtoImporter.h"
#include "qdisp/Executive.h"
#include "qdisp/JobQuery.h"
#include "qmeta/MessageStore.h"
Expand Down Expand Up @@ -120,15 +119,6 @@ using namespace std;

namespace lsst::qserv {

/// A class that can be used to parameterize a ProtoImporter<TaskMsg> for
/// debugging purposes
class ProtoPrinter {
public:
ProtoPrinter() {}
virtual void operator()(std::shared_ptr<proto::TaskMsg> m) { std::cout << "Got taskmsg ok"; }
virtual ~ProtoPrinter() {}
};

////////////////////////////////////////////////////////////////////////
// UserQuerySelect implementation
namespace ccontrol {
Expand Down
10 changes: 0 additions & 10 deletions src/proto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,3 @@ target_link_libraries(proto PUBLIC
protobuf
)

add_executable(testProtocol testProtocol.cc)

target_link_libraries(testProtocol
proto
crypto
Boost::unit_test_framework
)

add_test(NAME testProtocol COMMAND testProtocol)

92 changes: 0 additions & 92 deletions src/proto/FakeProtocolFixture.h

This file was deleted.

63 changes: 0 additions & 63 deletions src/proto/ProtoImporter.h

This file was deleted.

15 changes: 1 addition & 14 deletions src/proto/ScanTableInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,16 @@ namespace lsst::qserv::proto {

/// Structure to store shared scan information for a single table.
///
struct ScanTableInfo {
struct ScanTableInfo { // &&& check if still useful
using ListOf = std::vector<ScanTableInfo>;

ScanTableInfo() = default;
ScanTableInfo(std::string const& db_, std::string const& table_) : db(db_), table(table_) {}
ScanTableInfo(std::string const& db_, std::string const& table_, bool lockInMemory_, int scanRating_)
: db{db_}, table{table_}, lockInMemory{lockInMemory_}, scanRating{scanRating_} {}
ScanTableInfo(TaskMsg_ScanTable const& scanTbl)
: db{scanTbl.db()},
table{scanTbl.table()},
lockInMemory{scanTbl.lockinmemory()},
scanRating{scanTbl.scanrating()} {}

ScanTableInfo(ScanTableInfo const&) = default;

/// Copy contents of this object into a TaskMsg_ScanTable object.
void copyToScanTable(TaskMsg_ScanTable* msgScanTbl) const {
msgScanTbl->set_db(db);
msgScanTbl->set_table(table);
msgScanTbl->set_lockinmemory(lockInMemory);
msgScanTbl->set_scanrating(scanRating);
}

int compare(ScanTableInfo const& rhs) const;

std::string db;
Expand Down
Loading

0 comments on commit 83c4ddf

Please sign in to comment.