Remove obsolete constructors of CSSPrimitiveValue class.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Mar 2012 02:09:26 +0000 (02:09 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Mar 2012 02:09:26 +0000 (02:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80971

Remove constructors of CSSPrimitiveValue that can't be
reached.

Patch by Kwonjin Jeong <gram@company100.net> on 2012-03-14
Reviewed by Andreas Kling.

* css/CSSPrimitiveValueMappings.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110807 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/CSSPrimitiveValueMappings.h

index fcce39c..d8c2bdf 100644 (file)
@@ -1,3 +1,15 @@
+2012-03-14  Kwonjin Jeong  <gram@company100.net>
+
+        Remove obsolete constructors of CSSPrimitiveValue class.
+        https://bugs.webkit.org/show_bug.cgi?id=80971
+
+        Remove constructors of CSSPrimitiveValue that can't be
+        reached.
+
+        Reviewed by Andreas Kling.
+
+        * css/CSSPrimitiveValueMappings.h:
+
 2012-03-14  Igor Oliveira  <igor.o@sisa.samsung.com>
 
         Split the extra logic out of RenderBlock::updateFirstLetter
index da92e3d..80c5928 100644 (file)
@@ -86,13 +86,6 @@ template<> inline CSSPrimitiveValue::operator unsigned short() const
     return 0;
 }
 
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(int i)
-    : CSSValue(PrimitiveClass)
-{
-    m_primitiveUnitType = CSS_NUMBER;
-    m_value.num = static_cast<double>(i);
-}
-
 template<> inline CSSPrimitiveValue::operator int() const
 {
     if (m_primitiveUnitType == CSS_NUMBER)
@@ -102,13 +95,6 @@ template<> inline CSSPrimitiveValue::operator int() const
     return 0;
 }
 
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(unsigned i)
-    : CSSValue(PrimitiveClass)
-{
-    m_primitiveUnitType = CSS_NUMBER;
-    m_value.num = static_cast<double>(i);
-}
-
 template<> inline CSSPrimitiveValue::operator unsigned() const
 {
     if (m_primitiveUnitType == CSS_NUMBER)