aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-06-04 02:27:29 -0400
committerGitHub <noreply@github.com>2019-06-04 02:27:29 -0400
commitfaf3a183f3755a9986ec4379abadf3523bd8b3c0 (patch)
tree258d00740016e0ce10f0bd8d06a5401632dedacd /components/script_traits/lib.rs
parent3a2705f587c9a33f9440412f130a27cc66dcad28 (diff)
parente64de8d90acba327d4276f5b872d2b6eaa1bde9c (diff)
downloadservo-faf3a183f3755a9986ec4379abadf3523bd8b3c0.tar.gz
servo-faf3a183f3755a9986ec4379abadf3523bd8b3c0.zip
Auto merge of #23499 - est31:unused_code_removal_3, r=jdm
Remove unused code (3/N) <!-- Please describe your changes on the following line: --> Third PR in a series of PRs to remove unused/dead code from servo, powered by an (upcoming) tool of mine. Please take a look and tell me if you want to keep something. * First PR: #23477 * Second PR: #23498 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they only remove dead code <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23499) <!-- Reviewable:end -->
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index d5a030323f6..de05de657bd 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -550,10 +550,6 @@ pub type NsDuration = Length<u64, Nanoseconds>;
pub fn precise_time_ms() -> MsDuration {
Length::new(time::precise_time_ns() / (1000 * 1000))
}
-/// Returns the duration since an unspecified epoch measured in ns.
-pub fn precise_time_ns() -> NsDuration {
- Length::new(time::precise_time_ns())
-}
/// Data needed to construct a script thread.
///