Skip to content

Commit d8aac47

Browse files
committed
Remove now unused fields and methods from price_sched requests
1 parent a116655 commit d8aac47

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

pc/request.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,6 @@ void price::dump_json( json_wtr& wtr ) const
10841084

10851085
price_sched::price_sched( price *ptr )
10861086
: ptr_( ptr ),
1087-
shash_( 0UL ),
10881087
last_scheduled_time_( 0L )
10891088
{
10901089
}
@@ -1094,11 +1093,6 @@ price *price_sched::get_price() const
10941093
return ptr_;
10951094
}
10961095

1097-
uint64_t price_sched::get_hash() const
1098-
{
1099-
return shash_;
1100-
}
1101-
11021096
bool price_sched::get_is_ready()
11031097
{
11041098
manager *cptr = get_manager();
@@ -1125,9 +1119,6 @@ int64_t price_sched::get_last_scheduled_time() {
11251119

11261120
void price_sched::submit()
11271121
{
1128-
uint64_t *iptr = (uint64_t*)ptr_->get_account()->data();
1129-
shash_ = iptr[0]^iptr[2];
1130-
shash_ = shash_ % fraction;
11311122
get_manager()->schedule( this );
11321123
}
11331124

pc/request.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,13 @@ namespace pc
207207
int64_t get_last_scheduled_time();
208208

209209
public:
210-
static const uint64_t fraction = 997UL;
211-
210+
212211
bool get_is_ready() override;
213212
void submit() override;
214-
uint64_t get_hash() const;
215213
void schedule();
216214

217215
private:
218216
price *ptr_;
219-
uint64_t shash_;
220217
int64_t last_scheduled_time_;
221218
};
222219

0 commit comments

Comments
 (0)