aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/legacy.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-11-15 13:57:22 +0100
committerMs2ger <Ms2ger@gmail.com>2015-11-15 13:57:22 +0100
commitf2be9eb7358f2ea3a46e7c698a17073fba65f67e (patch)
tree3686feb17b2f9f6bade492a647f8164465e27d3b /components/style/legacy.rs
parent1154cf51c8d97f777ee99b8362ec9fb270ffd011 (diff)
downloadservo-f2be9eb7358f2ea3a46e7c698a17073fba65f67e.tar.gz
servo-f2be9eb7358f2ea3a46e7c698a17073fba65f67e.zip
Move the from_declaration to its only caller and remove the empty legacy module.
Diffstat (limited to 'components/style/legacy.rs')
-rw-r--r--components/style/legacy.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/components/style/legacy.rs b/components/style/legacy.rs
deleted file mode 100644
index 9a67fa518c7..00000000000
--- a/components/style/legacy.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//! Legacy presentational attributes defined in the HTML5 specification: `<td width>`,
-//! `<input size>`, and so forth.
-
-use properties::PropertyDeclaration;
-use selectors::matching::DeclarationBlock;
-use std::sync::Arc;
-
-/// A convenience function to create a declaration block from a single declaration. This is
-/// primarily used in `synthesize_rules_for_legacy_attributes`.
-#[inline]
-pub fn from_declaration(rule: PropertyDeclaration) -> DeclarationBlock<Vec<PropertyDeclaration>> {
- DeclarationBlock::from_declarations(Arc::new(vec![rule]))
-}