Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
substrate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
foundation
substrate
Commits
90586178
Unverified
Commit
90586178
authored
Mar 23, 2023
by
Oliver Tale-Yazdi
Committed by
GitHub
Mar 23, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Remove Weight::without_{ref_time, proof_size} (#13637)
Signed-off-by:
Oliver Tale-Yazdi
<
oliver.tale-yazdi@parity.io
>
parent
988f6add
Branches
Branches containing commit
Tags
monthly-2023-04
Tags containing commit
No related merge requests found
Pipeline
#258230
failed
Apr 1, 2023
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
primitives/weights/src/weight_v2.rs
+0
-10
0 additions, 10 deletions
primitives/weights/src/weight_v2.rs
with
0 additions
and
10 deletions
primitives/weights/src/weight_v2.rs
+
0
−
10
View file @
90586178
...
...
@@ -74,16 +74,6 @@ impl Weight {
&
mut
self
.proof_size
}
/// Return self but discard any reference time.
pub
const
fn
without_ref_time
(
&
self
)
->
Self
{
Self
{
ref_time
:
0
,
proof_size
:
self
.proof_size
}
}
/// Return self but discard any proof size.
pub
const
fn
without_proof_size
(
&
self
)
->
Self
{
Self
{
ref_time
:
self
.ref_time
,
proof_size
:
0
}
}
pub
const
MAX
:
Self
=
Self
{
ref_time
:
u64
::
MAX
,
proof_size
:
u64
::
MAX
};
/// Get the conservative min of `self` and `other` weight.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment