Skip to content

Commit f2500d8

Browse files
committed
servo: Merge #14532 - Remove unused ExpandToPixelBoundaries trait from util (from frewsxcv:remove-unused-trait); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo Source-Revision: e5f995e7c42528f1bdd13ab37a8691d91bbd36ba UltraBlame original commit: fb9d92e36702ac12154a968aae7b3f1d6d16cdf9
1 parent 81f233d commit f2500d8

File tree

2 files changed

+0
-151
lines changed

2 files changed

+0
-151
lines changed

servo/components/util/geometry.rs

-150
Original file line numberDiff line numberDiff line change
@@ -273,153 +273,3 @@ to_f32_px
273273
)
274274
)
275275
}
276-
pub
277-
trait
278-
ExpandToPixelBoundaries
279-
{
280-
fn
281-
expand_to_px_boundaries
282-
(
283-
&
284-
self
285-
)
286-
-
287-
>
288-
Self
289-
;
290-
}
291-
impl
292-
ExpandToPixelBoundaries
293-
for
294-
Rect
295-
<
296-
Au
297-
>
298-
{
299-
fn
300-
expand_to_px_boundaries
301-
(
302-
&
303-
self
304-
)
305-
-
306-
>
307-
Rect
308-
<
309-
Au
310-
>
311-
{
312-
let
313-
bottom_right
314-
=
315-
self
316-
.
317-
bottom_right
318-
(
319-
)
320-
;
321-
let
322-
bottom_right
323-
=
324-
Point2D
325-
:
326-
:
327-
new
328-
(
329-
Au
330-
:
331-
:
332-
from_px
333-
(
334-
bottom_right
335-
.
336-
x
337-
.
338-
ceil_to_px
339-
(
340-
)
341-
)
342-
Au
343-
:
344-
:
345-
from_px
346-
(
347-
bottom_right
348-
.
349-
y
350-
.
351-
ceil_to_px
352-
(
353-
)
354-
)
355-
)
356-
;
357-
let
358-
new_origin
359-
=
360-
Point2D
361-
:
362-
:
363-
new
364-
(
365-
Au
366-
:
367-
:
368-
from_px
369-
(
370-
self
371-
.
372-
origin
373-
.
374-
x
375-
.
376-
to_px
377-
(
378-
)
379-
)
380-
Au
381-
:
382-
:
383-
from_px
384-
(
385-
self
386-
.
387-
origin
388-
.
389-
y
390-
.
391-
to_px
392-
(
393-
)
394-
)
395-
)
396-
;
397-
Rect
398-
:
399-
:
400-
new
401-
(
402-
new_origin
403-
Size2D
404-
:
405-
:
406-
new
407-
(
408-
bottom_right
409-
.
410-
x
411-
-
412-
new_origin
413-
.
414-
x
415-
bottom_right
416-
.
417-
y
418-
-
419-
new_origin
420-
.
421-
y
422-
)
423-
)
424-
}
425-
}

servo/components/util/opts.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,6 @@ Ok
11871187
)
11881188
}
11891189
}
1190-
pub
11911190
fn
11921191
print_debug_usage
11931192
(

0 commit comments

Comments
 (0)